diff options
Diffstat (limited to 'src/game/SpellMgr.cpp')
| -rw-r--r-- | src/game/SpellMgr.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 7e16b325290..89756a3695d 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -303,7 +303,11 @@ bool IsPassiveSpell(uint32 spellId) SpellEntry const *spellInfo = sSpellStore.LookupEntry(spellId); if (!spellInfo) return false; - return (spellInfo->Attributes & SPELL_ATTR_PASSIVE) != 0; + if(spellInfo->Attributes & SPELL_ATTR_PASSIVE) + return true; + if(spellInfo->activeIconID == 2158) //flight + return true; + return false; } bool IsAutocastableSpell(uint32 spellId) @@ -313,6 +317,8 @@ bool IsAutocastableSpell(uint32 spellId) return false; if(spellInfo->Attributes & SPELL_ATTR_PASSIVE) return false; + if(spellInfo->activeIconID == 2158) + return false; if(spellInfo->AttributesEx & SPELL_ATTR_EX_UNAUTOCASTABLE_BY_PET) return false; return true; |
