fix(Scripts/Ulduar): apply Yogg-Saron Sanity at full stacks (#26689)

Co-authored-by: horn <pankrac.ja@seznam.cz>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-07-19 09:58:14 -03:00
committed by GitHub
parent ae038d4541
commit 43cce6cb78
2 changed files with 21 additions and 7 deletions

View File

@@ -0,0 +1,4 @@
-- Attach Sanity (63050) stack-init script
DELETE FROM `spell_script_names` WHERE `spell_id` = 63050 AND `ScriptName` = 'spell_yogg_saron_sanity';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(63050, 'spell_yogg_saron_sanity');

View File

@@ -611,13 +611,6 @@ struct boss_yoggsaron_sara : public ScriptedAI
}
}
void SpellHitTarget(Unit* target, SpellInfo const* spellInfo) override
{
if (spellInfo->Id == SPELL_SANITY)
if (Aura* aur = target->GetAura(SPELL_SANITY))
aur->SetStackAmount(100);
}
uint32 GetData(uint32 param) const override
{
if (param == DATA_GET_KEEPERS_COUNT)
@@ -2504,6 +2497,22 @@ class spell_yogg_saron_insane_aura : public AuraScript
}
};
// 63050 - Sanity
class spell_yogg_saron_sanity : public SpellScript
{
PrepareSpellScript(spell_yogg_saron_sanity);
void ModSanityStacks()
{
GetSpell()->SetSpellValue(SPELLVALUE_AURA_STACK, 100);
}
void Register() override
{
BeforeCast += SpellCastFn(spell_yogg_saron_sanity::ModSanityStacks);
}
};
// 64169 - Sanity Well
class spell_yogg_saron_sanity_well_aura : public AuraScript
{
@@ -2862,6 +2871,7 @@ void AddSC_boss_yoggsaron()
RegisterSpellScript(spell_yogg_saron_empowered_aura);
RegisterSpellScript(spell_yogg_saron_insane_periodic_trigger);
RegisterSpellScript(spell_yogg_saron_insane_aura);
RegisterSpellScript(spell_yogg_saron_sanity);
RegisterSpellScript(spell_yogg_saron_sanity_well_aura);
RegisterSpellScript(spell_keeper_freya_summon_sanity_well);
RegisterSpellScript(spell_yogg_saron_sanity_reduce);