aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorthenecromancer <none@none>2010-01-21 15:51:11 +0100
committerthenecromancer <none@none>2010-01-21 15:51:11 +0100
commit3b29a4e6f47b3fccfd05e8ebf707c1b425c8c2da (patch)
tree076eb5a4f627ef72a9344cb50f01266e3ea668a8 /src
parent0f531f75ff3f9e7079a7275cc2bf2cfd712ca6c2 (diff)
Do not apply SPELL_AURA_MOD_THREAT to negative threat changes (Eg. let Feint and alikes apply full effect)
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 915410430f3..fdf54cb018a 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -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);