From 3b29a4e6f47b3fccfd05e8ebf707c1b425c8c2da Mon Sep 17 00:00:00 2001 From: thenecromancer Date: Thu, 21 Jan 2010 15:51:11 +0100 Subject: Do not apply SPELL_AURA_MOD_THREAT to negative threat changes (Eg. let Feint and alikes apply full effect) --HG-- branch : trunk --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3