Core/Spells: Fixed diminishing returns for positive/event spells, patch by DrTenma

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-12-17 18:21:37 +01:00
parent b11e5bbf81
commit 21f6248726
+6
View File
@@ -2821,9 +2821,15 @@ void SpellMgr::LoadSkillLineAbilityMap()
DiminishingGroup GetDiminishingReturnsGroupForSpell(SpellEntry const* spellproto, bool triggered) DiminishingGroup GetDiminishingReturnsGroupForSpell(SpellEntry const* spellproto, bool triggered)
{ {
if (IsPositiveSpell(spellproto->Id))
return DIMINISHING_NONE;
// Explicit Diminishing Groups // Explicit Diminishing Groups
switch (spellproto->SpellFamilyName) switch (spellproto->SpellFamilyName)
{ {
// Event spells
case SPELLFAMILY_UNK1:
return DIMINISHING_NONE;
case SPELLFAMILY_GENERIC: case SPELLFAMILY_GENERIC:
// some generic arena related spells have by some strange reason MECHANIC_TURN // some generic arena related spells have by some strange reason MECHANIC_TURN
if (spellproto->Mechanic == MECHANIC_TURN) if (spellproto->Mechanic == MECHANIC_TURN)