mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Merge pull request #7435 from zorix/PR1
Core/Spells: Check for Bane spells should be before check curse because Bane have dispel type Curse
This commit is contained in:
@@ -1950,14 +1950,14 @@ SpellSpecificType SpellInfo::GetSpellSpecific() const
|
||||
}
|
||||
case SPELLFAMILY_WARLOCK:
|
||||
{
|
||||
// only warlock curses have this
|
||||
if (Dispel == DISPEL_CURSE)
|
||||
return SPELL_SPECIFIC_CURSE;
|
||||
|
||||
// Warlock (Bane of Doom | Bane of Agony | Bane of Havoc)
|
||||
if (Id == 603 || Id == 980 || Id == 80240)
|
||||
return SPELL_SPECIFIC_BANE;
|
||||
|
||||
// only warlock curses have this
|
||||
if (Dispel == DISPEL_CURSE)
|
||||
return SPELL_SPECIFIC_CURSE;
|
||||
|
||||
// Warlock (Demon Armor | Demon Skin | Fel Armor)
|
||||
if (SpellFamilyFlags[1] & 0x20000020 || SpellFamilyFlags[2] & 0x00000010)
|
||||
return SPELL_SPECIFIC_WARLOCK_ARMOR;
|
||||
|
||||
Reference in New Issue
Block a user