*Correct damage for spell Piercing Shots' ticks.
--HG-- branch : trunk
This commit is contained in:
+4
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user