Do not apply SPELL_AURA_MOD_THREAT to negative threat changes (Eg. let Feint and alikes apply full effect)

--HG--
branch : trunk
This commit is contained in:
thenecromancer
2010-01-21 15:51:11 +01:00
parent 0f531f75ff
commit 3b29a4e6f4

View File

@@ -11950,7 +11950,7 @@ bool Unit::CanHaveThreatList() const
float Unit::ApplyTotalThreatModifier(float fThreat, SpellSchoolMask schoolMask)
{
if (!HasAuraType(SPELL_AURA_MOD_THREAT))
if (!HasAuraType(SPELL_AURA_MOD_THREAT) || fThreat < 0)
return fThreat;
SpellSchools school = GetFirstSchoolInMask(schoolMask);