mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8306] Implement single-per-caster limitation for paladin "hand of" spells.
This commit is contained in:
parent
ba6494162f
commit
bb273d51ad
3 changed files with 8 additions and 2 deletions
|
|
@ -188,6 +188,9 @@ SpellSpecific GetSpellSpecific(uint32 spellId)
|
|||
if (spellInfo->SpellFamilyFlags & UI64LIT(0x0000000011010002))
|
||||
return SPELL_BLESSING;
|
||||
|
||||
if (spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000002190))
|
||||
return SPELL_HAND;
|
||||
|
||||
if ((spellInfo->SpellFamilyFlags & UI64LIT(0x00000820180400)) && (spellInfo->AttributesEx3 & 0x200))
|
||||
return SPELL_JUDGEMENT;
|
||||
|
||||
|
|
@ -238,6 +241,7 @@ bool IsSingleFromSpellSpecificPerCaster(SpellSpecific spellSpec1,SpellSpecific s
|
|||
case SPELL_POSITIVE_SHOUT:
|
||||
case SPELL_JUDGEMENT:
|
||||
case SPELL_PRESENCE:
|
||||
case SPELL_HAND:
|
||||
return spellSpec1==spellSpec2;
|
||||
case SPELL_BATTLE_ELIXIR:
|
||||
return spellSpec2==SPELL_BATTLE_ELIXIR
|
||||
|
|
@ -261,6 +265,7 @@ bool IsSingleFromSpellSpecificRanksPerTarget(SpellSpecific spellId_spec, SpellSp
|
|||
case SPELL_BLESSING:
|
||||
case SPELL_AURA:
|
||||
case SPELL_CURSE:
|
||||
case SPELL_HAND:
|
||||
return spellId_spec==i_spellId_spec;
|
||||
default:
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -96,7 +96,8 @@ enum SpellSpecific
|
|||
SPELL_BATTLE_ELIXIR = 14,
|
||||
SPELL_GUARDIAN_ELIXIR = 15,
|
||||
SPELL_FLASK_ELIXIR = 16,
|
||||
SPELL_PRESENCE = 17
|
||||
SPELL_PRESENCE = 17,
|
||||
SPELL_HAND = 18,
|
||||
};
|
||||
|
||||
SpellSpecific GetSpellSpecific(uint32 spellId);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8305"
|
||||
#define REVISION_NR "8306"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue