fix(Scripts/Ulduar): Steelbreaker's Static Disruption should target a ranged player (#26200)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -316,11 +316,20 @@ struct boss_steelbreaker : public ScriptedAI
|
|||||||
events.Repeat(15s, 20s);
|
events.Repeat(15s, 20s);
|
||||||
break;
|
break;
|
||||||
case EVENT_STATIC_DISRUPTION:
|
case EVENT_STATIC_DISRUPTION:
|
||||||
if (Unit* pTarget = SelectTarget(SelectTargetMethod::MinDistance, 0, 0, true))
|
{
|
||||||
me->CastSpell(pTarget, SPELL_STATIC_DISRUPTION, false);
|
// Prefer a random player out of melee range so the nature damage debuff
|
||||||
|
// (and its 5y splash) stays off the melee/tank cluster; if everyone is in
|
||||||
|
// melee, fall back to a random player regardless of range.
|
||||||
|
Unit* target = SelectTarget(SelectTargetMethod::Random, 0, -10.0f, true);
|
||||||
|
if (!target)
|
||||||
|
target = SelectTarget(SelectTargetMethod::Random, 0, 0.0f, true);
|
||||||
|
|
||||||
|
if (target)
|
||||||
|
me->CastSpell(target, SPELL_STATIC_DISRUPTION, false);
|
||||||
|
|
||||||
events.Repeat(20s, 40s);
|
events.Repeat(20s, 40s);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case EVENT_OVERWHELMING_POWER:
|
case EVENT_OVERWHELMING_POWER:
|
||||||
Talk(SAY_STEELBREAKER_POWER);
|
Talk(SAY_STEELBREAKER_POWER);
|
||||||
me->CastSpell(me->GetVictim(), SPELL_OVERWHELMING_POWER, true);
|
me->CastSpell(me->GetVictim(), SPELL_OVERWHELMING_POWER, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user