diff options
author | Anubisss <none@none> | 2009-07-25 20:48:12 +0200 |
---|---|---|
committer | Anubisss <none@none> | 2009-07-25 20:48:12 +0200 |
commit | c2f5b67a40c59d42b4d30d27cd3632336a19acab (patch) | |
tree | a271b7552577cf7c06c0ca9c1abc2d7ee46993c1 /src | |
parent | 7fa1036c08279a9bf3a948ed6fcfdc1ffe55d223 (diff) |
*Correct damage for spell Piercing Shots' ticks.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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; |