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

SpellManager.CanCast

Nightskine

Member
Joined
Oct 30, 2010
Messages
150
Reaction score
1
Quick question to CC devs...
What does SpellManager.CanCast(spellname) check for?
Does it look for cooldowns, if we have the spell, if we're in correct stance/spec to cast, position(behind target if required), range, enough rage/mana to cast .... etc?

I'm asking cause I want to make a casting wrap to cast spells by entering names alone - so is CanCast enough to check for cooldowns and stuff
or is
!SpellManager.Spells[spellName].Cooldown required as well to check for cooldowns before casting a spell.
 
Last edited:
I looked at it awhile ago in reflector, If I recall correctly it checks if you have the spell via SpellManager.HasSpell, Spell is off cooldown, if in range if you passed true as a 2nd parameter,if player is moving and casttime is greater then 0
 
the one nexos linked me a while ago included HasSpell, !Me.IsCasting, Spell.CanCast, !StyxWoW.GlobalCooldown, and rangecheck is true is passed to it
 
Back
Top