TrinityCore/TrinityCore — pull request #7435 by zorix (2012-08-18 13:46:33+00:00)
Title: Core/Spells: Check for Bane spells should be before check curse because Bane have dispel type Curse

e.g.
ID - 603 Bane of Doom
=================================================
Description: Banes the target with impending doom, causing $s1 Shadow damage every $T1 sec. When Bane of Doom deals damage, it has a $s2% chance to summon a Demon guardian.

Only one target can have Bane of Doom at a time, only one Bane per Warlock can be active on any one target. Lasts for $d.
ToolTip: Suffering $w1 Shadow damage every $t1 sec.
Category = 0, SpellIconID = 91, activeIconID = 0, SpellVisual = (5019,0)
Family SPELLFAMILY_WARLOCK, flag 0x00000000 00000002 00000000

SpellSchoolMask = 32 (SPELL_SCHOOL_MASK_SHADOW)
DamageClass = 1 (SPELL_DAMAGE_CLASS_MAGIC)
PreventionType = 1 (SPELL_PREVENTION_TYPE_SILENCE)
=================================================
Attributes: 0x00010000 (SPELL_ATTR0_NOT_SHAPESHIFT)
AttributesEx4: 0x00100000 (SPELL_ATTR4_NOT_CHECK_SELFCAST_POWER)
AttributesEx5: 0x00000020 (SPELL_ATTR5_SINGLE_TARGET_SPELL)
AttributesEx6: 0x00800000 (SPELL_ATTR6_UNK23)
AttributesEx7: 0x00001000 (SPELL_ATTR8_AURA_SEND_AMOUNT)
=================================================
Skill (Id 355) "Affliction"
ReqSkillValue 1, Forward Spell = 0, MinMaxValue (0, 0), CharacterPoints (1, 0)Spell Level = 20, base 20, max 0, maxTarget 0

Category = 0
DispelType = 2 (DISPEL_CURSE)
Mechanic = 0 (MECHANIC_NONE)
SpellRange: (Id 5) "Long Range":
MinRangeNegative = 0, MinRangePositive = 0
MaxRangeNegative = 40, MaxRangePositive = 40