diff options
author | megamage <none@none> | 2009-01-14 00:35:13 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-14 00:35:13 -0600 |
commit | 83e7f653fe6a1aad6121fa7606da620d14938e0c (patch) | |
tree | 3c470663f44d1b7949ead9091a615a81f8d14128 /src/game/SpellMgr.cpp | |
parent | 78e92e9023eff0bffb1bdb1a4f110ba9fcb3c5a8 (diff) |
*Update to Mangos 7083.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r-- | src/game/SpellMgr.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 474bf8eae52..3bfc6503cb3 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -1225,7 +1225,7 @@ bool SpellMgr::canStackSpellRanks(SpellEntry const *spellInfo) { if(spellInfo->powerType != POWER_MANA && spellInfo->powerType != POWER_HEALTH) return false; - if(IsProfessionSpell(spellInfo->Id)) + if(IsProfessionOrRidingSpell(spellInfo->Id)) return false; // All stance spells. if any better way, change it. @@ -1327,7 +1327,8 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2, bool return true; } -bool SpellMgr::IsProfessionSpell(uint32 spellId) + +bool SpellMgr::IsProfessionOrRidingSpell(uint32 spellId) { SpellEntry const *spellInfo = sSpellStore.LookupEntry(spellId); if(!spellInfo) @@ -1338,7 +1339,7 @@ bool SpellMgr::IsProfessionSpell(uint32 spellId) uint32 skill = spellInfo->EffectMiscValue[1]; - return IsProfessionSkill(skill); + return IsProfessionOrRidingSkill(skill); } bool SpellMgr::IsPrimaryProfessionSpell(uint32 spellId) |