[4.3.4]Core/Spells: Remove useless code

Fixes Glyph of Might
This commit is contained in:
CrYser committed 2012-09-11 22:34:23 +01:00
1 parent 2eed9b4045
commit 9483653c1e
1 file changed
-14
-14
View File
@@ -12386,20 +12386,6 @@ int32 Unit::ModSpellDuration(SpellInfo const* spellProto, Unit const* target, in
duration += aurEff->GetAmount() * MINUTE * IN_MILLISECONDS;
}
break;
case SPELLFAMILY_PALADIN:
if ((spellProto->SpellFamilyFlags[0] & 0x00000002) && spellProto->SpellIconID == 298)
{
// Glyph of Blessing of Might
if (AuraEffect* aurEff = GetAuraEffect(57958, 0))
duration += aurEff->GetAmount() * MINUTE * IN_MILLISECONDS;
}
else if ((spellProto->SpellFamilyFlags[0] & 0x00010000) && spellProto->SpellIconID == 306)
{
// Glyph of Blessing of Wisdom
if (AuraEffect* aurEff = GetAuraEffect(57979, 0))
duration += aurEff->GetAmount() * MINUTE * IN_MILLISECONDS;
}
break;
}
}
return std::max(duration, 0);