*Correct damage for spell Piercing Shots' ticks.

--HG--
branch : trunk
This commit is contained in:
Anubisss
2009-07-25 20:48:12 +02:00
parent 7fa1036c08
commit c2f5b67a40
+4 -1
View File
@@ -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); sLog.outError("Unit::HandleProcTriggerSpell: Spell %u miss posibly Piercing Shots",auraSpellInfo->Id);
return false; 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; target = pVictim;
} }
break; break;