What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Problem with getting time left on Improved Soul Fire

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


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
 
Found out this a little while back, hope it helps.

GetAuraTimeLeft

That looks rather complicated :D
Amazed that it just can't return a true value as it is

-----
But then again, it wasn't complicated :)
Thank you Wulf :)
 
Last edited:
Back
Top