mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7500] Not allow stacking some auras at target from different casters.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
ebd292a226
commit
610a040240
4 changed files with 37 additions and 3 deletions
|
|
@ -222,7 +222,7 @@ SpellSpecific GetSpellSpecific(uint32 spellId)
|
|||
return SPELL_NORMAL;
|
||||
}
|
||||
|
||||
bool IsSingleFromSpellSpecificPerCaster(uint32 spellSpec1,uint32 spellSpec2)
|
||||
bool IsSingleFromSpellSpecificPerCaster(SpellSpecific spellSpec1,SpellSpecific spellSpec2)
|
||||
{
|
||||
switch(spellSpec1)
|
||||
{
|
||||
|
|
@ -255,6 +255,19 @@ bool IsSingleFromSpellSpecificPerCaster(uint32 spellSpec1,uint32 spellSpec2)
|
|||
}
|
||||
}
|
||||
|
||||
bool IsSingleFromSpellSpecificRanksPerTarget(SpellSpecific spellId_spec, SpellSpecific i_spellId_spec)
|
||||
{
|
||||
switch(spellId_spec)
|
||||
{
|
||||
case SPELL_BLESSING:
|
||||
case SPELL_AURA:
|
||||
case SPELL_CURSE:
|
||||
return spellId_spec==i_spellId_spec;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool IsPositiveTarget(uint32 targetA, uint32 targetB)
|
||||
{
|
||||
// non-positive targets
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue