mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Do not allow to proc spells if they can't stack with already active auras.
this fixes 13048 and 12292. --HG-- branch : trunk
This commit is contained in:
@@ -345,6 +345,19 @@ SpellSpecific GetSpellSpecific(uint32 spellId)
|
||||
else if((spellInfo->AttributesEx2 & SPELL_ATTR_EX2_FOOD)
|
||||
&& !spellInfo->Category)
|
||||
return SPELL_WELL_FED;
|
||||
|
||||
switch(spellInfo->Id)
|
||||
{
|
||||
case 12880: // warrior's Enrage rank 1
|
||||
case 14201: // Enrage rank 2
|
||||
case 14202: // Enrage rank 3
|
||||
case 14203: // Enrage rank 4
|
||||
case 14204: // Enrage rank 5
|
||||
case 12292: // Death Wish
|
||||
return SPELL_WARRIOR_ENRAGE;
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_MAGE:
|
||||
@@ -489,6 +502,7 @@ bool IsSingleFromSpellSpecificPerTarget(uint32 spellSpec1,uint32 spellSpec2)
|
||||
case SPELL_DRINK:
|
||||
case SPELL_FOOD:
|
||||
case SPELL_CHARM:
|
||||
case SPELL_WARRIOR_ENRAGE:
|
||||
return spellSpec1==spellSpec2;
|
||||
case SPELL_BATTLE_ELIXIR:
|
||||
return spellSpec2==SPELL_BATTLE_ELIXIR
|
||||
|
||||
Reference in New Issue
Block a user