fix(Scripts/Spells): fix a crash with resto shaman's t10 chain heal procs (#8614)
This commit is contained in:
parent
328bc7c5bb
commit
fa832e5da0
1 changed files with 9 additions and 1 deletions
|
|
@ -154,7 +154,15 @@ public:
|
|||
|
||||
uint32 triggered_spell_id = 70809;
|
||||
SpellInfo const* triggeredSpell = sSpellMgr->GetSpellInfo(triggered_spell_id);
|
||||
int32 amount = CalculatePct(eventInfo.GetDamageInfo()->GetDamage(), aurEff->GetAmount()) / triggeredSpell->GetMaxTicks();
|
||||
|
||||
HealInfo* healInfo = eventInfo.GetHealInfo();
|
||||
|
||||
if (!healInfo || !triggeredSpell)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int32 amount = CalculatePct(healInfo->GetHeal(), aurEff->GetAmount()) / triggeredSpell->GetMaxTicks();
|
||||
eventInfo.GetProcTarget()->CastDelayedSpellWithPeriodicAmount(GetTarget(), triggered_spell_id, SPELL_AURA_PERIODIC_HEAL, amount, EFFECT_0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue