Core/Spells: Fixed random Unholy Blight DoT damage ticks
Tnx Arcane
This commit is contained in:
@@ -7502,17 +7502,9 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
|||||||
// Glyph of Unholy Blight
|
// Glyph of Unholy Blight
|
||||||
if (AuraEffect *glyph=GetAuraEffect(63332, 0))
|
if (AuraEffect *glyph=GetAuraEffect(63332, 0))
|
||||||
AddPctN(basepoints0, glyph->GetAmount());
|
AddPctN(basepoints0, glyph->GetAmount());
|
||||||
// Find replaced aura to use it's remaining amount
|
|
||||||
AuraEffectList const& DoTAuras = target->GetAuraEffectsByType(SPELL_AURA_PERIODIC_DAMAGE);
|
|
||||||
for (Unit::AuraEffectList::const_iterator i = DoTAuras.begin(); i != DoTAuras.end(); ++i)
|
|
||||||
{
|
|
||||||
if ((*i)->GetCasterGUID() != GetGUID() || (*i)->GetId() != 50536)
|
|
||||||
continue;
|
|
||||||
basepoints0 += ((*i)->GetAmount() * ((*i)->GetTotalTicks() - ((*i)->GetTickNumber()))) / (*i)->GetTotalTicks();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
triggered_spell_id = 50536;
|
triggered_spell_id = 50536;
|
||||||
|
basepoints0 += pVictim->GetRemainingPeriodicAmount(GetGUID(), triggered_spell_id, SPELL_AURA_PERIODIC_DAMAGE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Vendetta
|
// Vendetta
|
||||||
|
|||||||
Reference in New Issue
Block a user