aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellMgr.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-05 16:11:12 -0500
committermegamage <none@none>2009-08-05 16:11:12 -0500
commite7ebddfc9a8b576bf84e0dd5fd30cef2268de65e (patch)
tree81b4d99e45ca64f18014f56b1c29db3883836ce6 /src/game/SpellMgr.cpp
parent49e127727b962e94960b61ff7c097f3d705f2707 (diff)
[8306] Implement single-per-caster limitation for paladin "hand of" spells. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r--src/game/SpellMgr.cpp5
1 files changed, 5 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: