fix(Scripts/SunwellPlateau): Muru - Changed the amount of Tick Negative Energy Periodic (#21102)

This commit is contained in:
EricksOliveira
2025-01-08 13:49:01 +00:00
committed by GitHub
parent 64d524f889
commit d62c6e36d8

View File

@@ -342,7 +342,7 @@ class spell_entropius_negative_energy_periodic : public AuraScript
void PeriodicTick(AuraEffect const* aurEff) void PeriodicTick(AuraEffect const* aurEff)
{ {
PreventDefaultAction(); PreventDefaultAction();
uint32 targetCount = aurEff->GetTickNumber() > 12 ? 1 : aurEff->GetTickNumber() / 12; uint32 targetCount = (aurEff->GetTickNumber() + 11) / 12;
GetTarget()->CastCustomSpell(aurEff->GetSpellInfo()->Effects[EFFECT_0].TriggerSpell, SPELLVALUE_MAX_TARGETS, targetCount); GetTarget()->CastCustomSpell(aurEff->GetSpellInfo()->Effects[EFFECT_0].TriggerSpell, SPELLVALUE_MAX_TARGETS, targetCount);
} }