Skip to content

Commit

Permalink
SD2: fiX for summoning spells in Sholazar Basin
Browse files Browse the repository at this point in the history
  • Loading branch information
Grz3s authored and killerwife committed Sep 20, 2023
1 parent d835bda commit cdd94de
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sql/scriptdev2/spell.sql
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,10 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
(51088,'spell_have_amberseed'),
(51094,'spell_have_chilled_serpent_mucus'),
(51173,'spell_a_tangled_skein_encasing_webs_effect'),
(51186,'spell_summon_goregek_the_bristlepine_hunter'),
(51188,'spell_summon_dajik_the_wasp_hunter'),
(51189,'spell_summon_zepik_the_gorloc_hunter'),
(51257,'spell_summon_possessed_crocolisk'),
(51330,'spell_shoot_rjr'),
(51511,'spell_toss_ice_boulder'),
(51590,'spell_toss_ice_boulder'),
Expand All @@ -741,6 +745,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
(52089,'spell_drakuramas_teleport_script_01'),
(52239,'spell_drakuramas_teleport_script_02'),
(52390,'spell_charm_drakuru_servant'),
(52218,'spell_vics_flying_machine'),
(52244,'spell_charm_geist'),
(52245,'spell_harvest_blight_crystal'),
(52247,'spell_target_crystal'),
Expand Down
51 changes: 51 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/sholazar_basin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,52 @@ struct SummonAndMountStampy : public SpellScript
}
};

// 52218 - Vic's Flying Machine
struct VicsFlyingMachine : public SpellScript
{
void OnSummon(Spell* spell, Creature* summon) const override
{
summon->SelectLevel(spell->GetCaster()->GetLevel());
}
};

// 51186 - Summon Goregek the Bristlepine Hunter
struct SummonGoregekTheBristlepineHunter : public SpellScript
{
void OnSummon(Spell* spell, Creature* summon) const override
{
summon->SelectLevel(spell->GetCaster()->GetLevel());
}
};

// 51188 - Summon Dajik the Wasp Hunter
struct SummonDajikTheWaspHunter : public SpellScript
{
void OnSummon(Spell* spell, Creature* summon) const override
{
summon->SelectLevel(spell->GetCaster()->GetLevel());
}
};

// 51189 - Summon Zepik the Gorloc Hunter
struct SummonZepikTheGorlocHunter : public SpellScript
{
void OnSummon(Spell* spell, Creature* summon) const override
{
summon->SelectLevel(spell->GetCaster()->GetLevel());
summon->SetDefaultGossipMenuId(summon->GetCreatureInfo()->GossipMenuId);
}
};

// 51257 - Summon Possessed Crocolisk
struct SummonPossessedCrocolisk : public SpellScript
{
void OnSummon(Spell* spell, Creature* summon) const override
{
summon->SelectLevel(spell->GetCaster()->GetLevel());
}
};

void AddSC_sholazar_basin()
{
Script* pNewScript = new Script;
Expand Down Expand Up @@ -780,4 +826,9 @@ void AddSC_sholazar_basin()
RegisterSpellScript<SummonDrostan>("spell_summon_drostan");
RegisterSpellScript<OfferJunglePunch>("spell_offer_jungle_punch");
RegisterSpellScript<SummonAndMountStampy>("spell_summon_and_mount_stampy");
RegisterSpellScript<VicsFlyingMachine>("spell_vics_flying_machine");
RegisterSpellScript<SummonGoregekTheBristlepineHunter>("spell_summon_goregek_the_bristlepine_hunter");
RegisterSpellScript<SummonDajikTheWaspHunter>("spell_summon_dajik_the_wasp_hunter");
RegisterSpellScript<SummonZepikTheGorlocHunter>("spell_summon_zepik_the_gorloc_hunter");
RegisterSpellScript<SummonPossessedCrocolisk>("spell_summon_possessed_crocolisk");
}

0 comments on commit cdd94de

Please sign in to comment.