Core/Spells: Remove hacks related to TARGET_DEST_NEARBY_DB and DB data (#30626)

This commit is contained in:
Aqua Deus
2025-01-24 17:54:51 +01:00
committed by GitHub
parent fa06e7a9e3
commit 68b10dcaab
3 changed files with 27 additions and 45 deletions

View File

@@ -1207,32 +1207,6 @@ class spell_meditation_timer_bar : public AuraScript
}
};
std::array<Position, 9> AmberleafTroublemakerPositions = { {
{ 1181.6615f, 3451.1711f, 102.85520f },
{ 1187.9219f, 3448.9497f, 102.44913f },
{ 1182.2552f, 3441.4202f, 102.43922f },
{ 1181.6615f, 3451.1711f, 102.85520f },
{ 1180.1442f, 3448.6729f, 102.65444f },
{ 1187.4080f, 3440.7612f, 102.53220f },
{ 1186.5817f, 3443.6372f, 102.41002f },
{ 1188.3351f, 3443.0390f, 102.41056f },
{ 1181.8802f, 3446.1953f, 102.41484f }
} };
// 114698 - Summon Amberleaf Troublemaker
class spell_summon_amberleaf_troublemaker : public SpellScript
{
void SetDest(SpellDestination& dest)
{
dest.Relocate(Trinity::Containers::SelectRandomContainerElement(AmberleafTroublemakerPositions));
}
void Register() override
{
OnDestinationTargetSelect += SpellDestinationTargetSelectFn(spell_summon_amberleaf_troublemaker::SetDest, EFFECT_0, TARGET_DEST_DEST);
}
};
void AddSC_zone_the_wandering_isle()
{
RegisterCreatureAI(npc_tushui_huojin_trainee);
@@ -1251,7 +1225,6 @@ void AddSC_zone_the_wandering_isle()
RegisterSpellScript(spell_force_summoner_to_ride_vehicle);
RegisterSpellScript(spell_ride_drake);
RegisterSpellScript(spell_meditation_timer_bar);
RegisterSpellScript(spell_summon_amberleaf_troublemaker);
new at_min_dimwind_captured();
new at_cave_of_meditation();