mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
fix(Scripts/Ulduar): update Boss Keepers, Gossip Keepers, Yogg Keepers, Yogg-Saron (#18943)
* gossip keepers, keepers, sara freya spell improvements better gossip update converter to update spellscript refactor sanity wells spawn position, summons zonecombat make sara summon sanity wells again thorim casts start again, handle sanity wells only by sanity well spawn script refactor sanity brackets update comment gossip keepers, keepers, sara freya spell improvements better gossip update converter to update spellscript refactor sanity wells spawn position, summons zonecombat make sara summon sanity wells again thorim casts start again, handle sanity wells only by sanity well spawn script refactor sanity brackets update comment gossip keepers, keepers, sara freya spell improvements better gossip update converter to update spellscript refactor sanity wells spawn position, summons zonecombat make sara summon sanity wells again thorim casts start again, handle sanity wells only by sanity well spawn script refactor sanity brackets update comment gossip keepers, keepers, sara freya spell improvements better gossip update converter to update spellscript refactor sanity wells spawn position, summons zonecombat make sara summon sanity wells again thorim casts start again, handle sanity wells only by sanity well spawn script refactor sanity brackets update comment * refactor: remove _keepersGUID[4] * make keeper auras only target players, remove apply scale immunity to well/keepers include caster in cast * update keeper flags * summon and despawn gossip keepers spawn only if fight done add intro spell and handle outro fix off by 1 fix casting simple teleport, only spawn after teleporting remove empty line * add teleport to shared ulduar.h * each keeper triggers their own gossip spawn * update is called in Reset(), no need to do it here * add SpellHit override to Freya, Hodir * Freya, Hodir: use scheduler to schedule post-fight teleport * JustSummoned rename cr to summon * sanity well summons are handled by freya instead of sara * rename pCreature to creature * keeper use RegisterUlduarCreatureAI * Freya, Hodir, Thorim: increase despawn time * despawn tentacles, sanity wells after fight despawn tentacles after fight * change order of teleport spells * am missing header?
This commit is contained in:
@@ -628,6 +628,7 @@ class spell_gen_black_magic_enchant : public AuraScript
|
||||
};
|
||||
|
||||
// 53642 - The Might of Mograine
|
||||
// 64174 - Protective Gaze
|
||||
class spell_gen_area_aura_select_players : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_gen_area_aura_select_players);
|
||||
@@ -642,6 +643,24 @@ class spell_gen_area_aura_select_players : public AuraScript
|
||||
}
|
||||
};
|
||||
|
||||
// 62650 - Fortitude of Frost
|
||||
// 62670 - Resilience of Nature
|
||||
// 62671 - Speed of Invention
|
||||
// 62702 - Fury of the Storm
|
||||
class spell_gen_area_aura_select_players_and_caster : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_gen_area_aura_select_players_and_caster);
|
||||
|
||||
bool CheckAreaTarget(Unit* target)
|
||||
{
|
||||
return target->GetTypeId() == TYPEID_PLAYER || target == GetCaster();
|
||||
}
|
||||
void Register() override
|
||||
{
|
||||
DoCheckAreaTarget += AuraCheckAreaTargetFn(spell_gen_area_aura_select_players_and_caster::CheckAreaTarget);
|
||||
}
|
||||
};
|
||||
|
||||
/* 29883 - Blink (spell_gen_select_target_count_15_1)
|
||||
38573 - Spore Drop Effect (spell_gen_select_target_count_15_1)
|
||||
38633 - Arcane Volley (spell_gen_select_target_count_15_1)
|
||||
@@ -5193,6 +5212,7 @@ void AddSC_generic_spell_scripts()
|
||||
RegisterSpellScript(spell_gen_disabled_above_63);
|
||||
RegisterSpellScript(spell_gen_black_magic_enchant);
|
||||
RegisterSpellScript(spell_gen_area_aura_select_players);
|
||||
RegisterSpellScript(spell_gen_area_aura_select_players_and_caster);
|
||||
RegisterSpellScriptWithArgs(spell_gen_select_target_count, "spell_gen_select_target_count_15_1", TARGET_UNIT_SRC_AREA_ENEMY, 1);
|
||||
RegisterSpellScriptWithArgs(spell_gen_select_target_count, "spell_gen_select_target_count_15_2", TARGET_UNIT_SRC_AREA_ENEMY, 2);
|
||||
RegisterSpellScriptWithArgs(spell_gen_select_target_count, "spell_gen_select_target_count_15_5", TARGET_UNIT_SRC_AREA_ENEMY, 5);
|
||||
|
||||
Reference in New Issue
Block a user