From c2f5b67a40c59d42b4d30d27cd3632336a19acab Mon Sep 17 00:00:00 2001 From: Anubisss Date: Sat, 25 Jul 2009 20:48:12 +0200 Subject: *Correct damage for spell Piercing Shots' ticks. --HG-- branch : trunk --- src/game/Unit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 0ac5f788263..cd378c94586 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7363,7 +7363,10 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig sLog.outError("Unit::HandleProcTriggerSpell: Spell %u miss posibly Piercing Shots",auraSpellInfo->Id); return false; } - basepoints0 = int32(damage * triggerAmount / 100); + SpellEntry const *TriggerPS = sSpellStore.LookupEntry(trigger_spell_id); + if(!TriggerPS) + return false; + basepoints0 = int32(damage * triggerAmount / 100 / (GetSpellMaxDuration(TriggerPS) / TriggerPS->EffectAmplitude[0])); target = pVictim; } break; -- cgit v1.2.3