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

Alternative to CanCast()?

handnavi

Well-Known Member
Joined
Jan 15, 2010
Messages
2,489
Reaction score
59
Hi!

Following Situation:

I want to clip the cast "Mind flay", when "Mind Blast" goes off Cooldown.


SpellManager.CanCast("Mind Blast") while still channeling "Mind Flay" always returns false.

Is there another function, that could help me out?
 
!SpellManager.Spells["Mind Flay"].Cooldown

which can be supplemented with

!SpellManager.GlobalCooldown

Code:
if (!SpellManager.Spells["Mind Flay"].Cooldown
   && !SpellManager.GlobalCooldown)
{
    SpellManager.Cast("Mind Flay");
    Logging.Write("Casting Mind Flay");
}


Should do the trick.
 
Last edited:
!SpellManager.Spells["Mind Flay"].Cooldown

which can be supplemented with

!SpellManager.GlobalCooldown

Code:
if (!SpellManager.Spells["Mind Flay"].Cooldown
   && !SpellManager.GlobalCooldown)
{
    SpellManager.Cast("Mind Flay");
    Logging.Write("Casting Mind Flay");
}


Should do the trick.

Yeah, you are right. CodenameG allready helped me, thanks anyway! :-)
 
Back
Top