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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -342,7 +342,7 @@ class spell_entropius_negative_energy_periodic : public AuraScript
void PeriodicTick(AuraEffect const* aurEff)
{
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);
}