mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Scripts/HoO: removed a hack from Anraphet script. The teleport spells are part of the Ascendant Council encounter
This commit is contained in:
1
sql/updates/world/custom/custom_2018_07_13_00_world.sql
Normal file
1
sql/updates/world/custom/custom_2018_07_13_00_world.sql
Normal file
@@ -0,0 +1 @@
|
||||
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_hoo_platform_teleport';
|
||||
@@ -592,45 +592,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
// 82329 Teleport Earth, 82330 Teleport Air, 82331 Teleport Fire, 82332 Teleport Water
|
||||
// Sets orientation and updates home position after warden has been teleported.
|
||||
class spell_hoo_platform_teleport : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_hoo_platform_teleport() : SpellScriptLoader("spell_hoo_platform_teleport") { }
|
||||
|
||||
class spell_hoo_platform_teleport_SpellScript : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_hoo_platform_teleport_SpellScript);
|
||||
|
||||
void SetDest(SpellDestination& dest)
|
||||
{
|
||||
Creature* creature = GetCaster()->ToCreature();
|
||||
if (creature)
|
||||
return;
|
||||
|
||||
// Side of the room: WEST > 366.781f (middle of the room) > EAST
|
||||
float ori = creature->GetPositionY() > 366.781f ? DegToRad(270) : DegToRad(90);
|
||||
|
||||
// DB dest has no orientation field (always 0.0f).
|
||||
dest.RelocateOffset({ 0.0f, 0.0f, 0.0f, ori });
|
||||
|
||||
creature->SetHomePosition(dest._position.GetPosition());
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnDestinationTargetSelect += SpellDestinationTargetSelectFn(spell_hoo_platform_teleport_SpellScript::SetDest, EFFECT_0, TARGET_DEST_DB);
|
||||
}
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const override
|
||||
{
|
||||
return new spell_hoo_platform_teleport_SpellScript();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// 77273 Lava Eruption
|
||||
class spell_flame_warden_lava_eruption : public SpellScriptLoader
|
||||
{
|
||||
@@ -936,7 +897,6 @@ void AddSC_boss_anraphet()
|
||||
new npc_brann_bronzebeard_anraphet();
|
||||
new npc_alpha_beam();
|
||||
new npc_omega_stance();
|
||||
new spell_hoo_platform_teleport();
|
||||
new spell_flame_warden_lava_eruption();
|
||||
new spell_whirling_winds_movement();
|
||||
new spell_anraphet_destruction_protocol();
|
||||
|
||||
Reference in New Issue
Block a user