Venus112
New Member
- Joined
- Jun 17, 2010
- Messages
- 1,509
- Reaction score
- 13
Hey folks!
I'm currently rewriting Plagueheart (our destruction warlock CC), but i can't seem to get a correct value on time left for Improved Soul Fire
Tried the following
and
Doesn't seem to want to do my bidding
We've used a code that would go from the spell CastTime + Distance to current Target + 1000 miliseconds, but to me it seemed to hault the CC, compared to using stopwatches
I just need to know if there's a way i can get CC to work with Time left on Improved Soul Fire
Thanks in advance
I'm currently rewriting Plagueheart (our destruction warlock CC), but i can't seem to get a correct value on time left for Improved Soul Fire
Tried the following
Code:
if (!Me.ActiveAuras.ContainsKey("Improved Soul Fire") && !_SF.IsRunning || Me.ActiveAuras.ContainsKey("Improved Soul Fire") && Me.Auras["Improved Soul Fire"].TimeLeft.TotalMilliseconds <= 4300 && !_SF.IsRunning)
and
Code:
private bool ISF()
{
if (Me.HasAura("Empowered Imp"))
{
return true;
}
if (Me.Auras.ContainsKey("Improved Soul Fire"))
{
var auras = Me.GetAllAuras();
foreach (var a in auras)
{
if (a.SpellId == ImpSF.Id)
{
if (a.TimeLeft.TotalMilliseconds < 4300)
{
return true;
}
else
{
return false;
}
}
}
}
return true;
}
#endregion
Doesn't seem to want to do my bidding

We've used a code that would go from the spell CastTime + Distance to current Target + 1000 miliseconds, but to me it seemed to hault the CC, compared to using stopwatches

I just need to know if there's a way i can get CC to work with Time left on Improved Soul Fire
Thanks in advance