diff options
author | megamage <none@none> | 2009-08-05 16:11:12 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-05 16:11:12 -0500 |
commit | e7ebddfc9a8b576bf84e0dd5fd30cef2268de65e (patch) | |
tree | 81b4d99e45ca64f18014f56b1c29db3883836ce6 | |
parent | 49e127727b962e94960b61ff7c097f3d705f2707 (diff) |
[8306] Implement single-per-caster limitation for paladin "hand of" spells. Author: VladimirMangos
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellMgr.cpp | 5 | ||||
-rw-r--r-- | src/game/SpellMgr.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 2144bd573e7..75b2ecfb6b3 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -575,6 +575,10 @@ SpellSpecific GetSpellSpecific(uint32 spellId) if (spellInfo->SpellFamilyFlags[0] & 0x11010002) return SPELL_BLESSING; + + if (spellInfo->SpellFamilyFlags[0] & 0x00002190) + return SPELL_HAND; + // Judgement of Wisdom, Judgement of Light, Judgement of Justice if (spellInfo->Id == 20184 || spellInfo->Id == 20185 || spellInfo->Id == 20186) return SPELL_JUDGEMENT; @@ -634,6 +638,7 @@ bool IsSingleFromSpellSpecificPerCaster(uint32 spellSpec1,uint32 spellSpec2) { case SPELL_SEAL: case SPELL_BLESSING: + case SPELL_HAND: case SPELL_AURA: case SPELL_STING: case SPELL_CURSE: diff --git a/src/game/SpellMgr.h b/src/game/SpellMgr.h index 42767a7df09..c85431256a0 100644 --- a/src/game/SpellMgr.h +++ b/src/game/SpellMgr.h @@ -121,6 +121,7 @@ enum SpellSpecific SPELL_MAGE_ARCANE_BRILLANCE = 24, SPELL_WARRIOR_ENRAGE = 25, SPELL_PRIEST_DIVINE_SPIRIT = 26, + SPELL_HAND = 27, }; #define SPELL_LINKED_MAX_SPELLS 200000 |