Core/Spell: move attribute helpers to spellInfo

This commit is contained in:
hondacrx
2017-12-26 12:32:14 -05:00
parent 7a4d4ad945
commit 58333b9f1f
3 changed files with 23 additions and 14 deletions
+10
View File
@@ -571,11 +571,21 @@ namespace Game.Spells
return HasAttribute(SpellAttr1.Channeled1 | SpellAttr1.Channeled2);
}
public bool IsMoveAllowedChannel()
{
return IsChanneled() && HasAttribute(SpellAttr5.CanChannelWhenMoving);
}
public bool NeedsComboPoints()
{
return HasAttribute(SpellAttr1.ReqComboPoints1 | SpellAttr1.ReqComboPoints2);
}
public bool IsNextMeleeSwingSpell()
{
return HasAttribute(SpellAttr0.OnNextSwing | SpellAttr0.OnNextSwing2);
}
public bool IsBreakingStealth()
{
return !HasAttribute(SpellAttr1.NotBreakStealth);