From bc14ebb1026b596d1bf93c331c8c0baf4c3276d0 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 9 Aug 2009 15:49:38 -0500 Subject: *Fix a typo of fixed damage spells. Thanks to loop69 --HG-- branch : trunk --- src/game/Unit.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index f02e8917f32..7d6807b7811 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -1283,7 +1283,10 @@ void Unit::CalculateSpellDamageTaken(SpellNonMeleeDamage *damageInfo, int32 dama return; if(spellInfo->AttributesEx4 & SPELL_ATTR_EX4_FIXED_DAMAGE) + { + damageInfo->damage = damage; return; + } Unit *pVictim = damageInfo->target; if(!pVictim || !pVictim->isAlive()) -- cgit v1.2.3