Scripts/Deepholm: corrected casting of the intro taxi when entering Deepholm

This commit is contained in:
Ovahlord
2021-03-26 18:26:06 +01:00
parent 82714dfa59
commit bef302fc7e
2 changed files with 5 additions and 21 deletions

View File

@@ -0,0 +1,5 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_deepholm_intro_teleport';
DELETE FROM `spell_area` WHERE `spell`= 84101;
INSERT INTO `spell_area` (`spell`, `area`, `quest_start`, `quest_end`, `aura_spell`, `racemask`, `gender`, `flags`, `quest_start_status`, `quest_end_status`) VALUES
(84101, 5042, 0, 0, 84073, 0, 2, 0x1, 64, 11);

View File

@@ -171,7 +171,6 @@ enum DeepholmTheRealmOfEarth
SPELL_CAMERA_1 = 84364,
SPELL_FORCECAST_AGGRA_PING = 96123,
SPELL_FORCECAST_TELEPORT = 84093,
SPELL_DEEPHOLM_INTRO_TAXI = 84101,
SPELL_EJECT_PASSENGER_2 = 62539,
// Events
@@ -284,29 +283,9 @@ class spell_deepholm_twilight_buffet_targeting : public SpellScript
}
};
// 84073 - Deepholm Intro Teleport
class spell_deepholm_intro_teleport : public AuraScript
{
bool Validate(SpellInfo const* /*spellInfo*/) override
{
return ValidateSpellInfo({ SPELL_DEEPHOLM_INTRO_TAXI });
}
void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetTarget()->CastSpell(GetTarget(), SPELL_DEEPHOLM_INTRO_TAXI);
}
void Register() override
{
AfterEffectRemove.Register(&spell_deepholm_intro_teleport::HandleRemove, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
}
};
void AddSC_deepholm()
{
RegisterCreatureAI(npc_deepholm_xariona);
RegisterCreatureAI(npc_deepholm_wyvern);
RegisterSpellScript(spell_deepholm_twilight_buffet_targeting);
RegisterSpellScript(spell_deepholm_intro_teleport);
}