fix(Scripts/Northrend): Ulduar Mimiron plasma ball always target victim (#22543)

Co-authored-by: Tereneckla <Tereneckla@pm.me>
This commit is contained in:
Jelle Meeus 2025-07-24 06:02:11 -07:00 committed by GitHub
parent 2a3075504e
commit cd2c081a64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1760,21 +1760,7 @@ public:
break;
case EVENT_SPELL_PLASMA_BALL:
if (!immobilized)
{
if (Phase == 3)
{
if (Unit* victim = me->GetVictim())
me->CastSpell(victim, SPELL_PLASMA_BALL, false);
}
else
{
if (Unit* victim = SelectTarget(SelectTargetMethod::Random, 0, 27.5f, true))
{
me->SetFacingToObject(victim);
me->CastSpell(victim, SPELL_PLASMA_BALL, false);
}
}
}
DoCastVictim(SPELL_PLASMA_BALL);
events.Repeat(3s);
break;
case EVENT_SUMMON_BOMB_BOT: