mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Scripts/Northrend): Ulduar Mimiron plasma ball always target victim (#22543)
Co-authored-by: Tereneckla <Tereneckla@pm.me>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user