fix(Scripts/Ulduar): don't mark players below the platform for Constrictor Tentacles (#26933)

This commit is contained in:
Andrew
2026-08-03 19:27:10 -03:00
committed by GitHub
parent 808247b06c
commit 1e91bba7c8
2 changed files with 22 additions and 1 deletions
@@ -2820,6 +2820,24 @@ class spell_yogg_saron_target_selectors : public SpellScript
}
};
// 64132 - Constrictor Tentacle
class spell_yogg_saron_constrictor_tentacle : public SpellScript
{
PrepareSpellScript(spell_yogg_saron_constrictor_tentacle);
void FilterTargets(std::list<WorldObject*>& targets)
{
// The tentacle erupts at the marked player's feet, so skip players below
// the platform (illusion realms and brain room).
targets.remove_if([](WorldObject* target) { return target->GetPositionZ() <= 300.0f; });
}
void Register() override
{
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_yogg_saron_constrictor_tentacle::FilterTargets, EFFECT_0, TARGET_UNIT_SRC_AREA_ENEMY);
}
};
// 64132 - Constrictor Tentacle
class spell_yogg_saron_constrictor_tentacle_aura : public AuraScript
{
@@ -2993,7 +3011,7 @@ void AddSC_boss_yoggsaron()
RegisterSpellScript(spell_yogg_saron_empowering_shadows);
RegisterSpellScript(spell_yogg_saron_in_the_maws_of_the_old_god);
RegisterSpellScript(spell_yogg_saron_target_selectors);
RegisterSpellScript(spell_yogg_saron_constrictor_tentacle_aura);
RegisterSpellAndAuraScriptPair(spell_yogg_saron_constrictor_tentacle, spell_yogg_saron_constrictor_tentacle_aura);
RegisterSpellScript(spell_yogg_saron_squeeze_aura);
RegisterSpellScript(spell_yogg_saron_grim_reprisal_aura);