[8306] Implement single-per-caster limitation for paladin "hand of" spells. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-05 16:11:12 -05:00
parent 49e127727b
commit e7ebddfc9a
2 changed files with 6 additions and 0 deletions

View File

@@ -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:

View File

@@ -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