Skip to content

Commit

Permalink
SD2: Sholazar Basin - more summon spells fixed
Browse files Browse the repository at this point in the history
51190 - Summon Lafoo
51191 - Summon Jaloot
51192 - Summon Moodle
52276 - Summon Kartak
52333 - Summon Soo-holu
  • Loading branch information
Grz3s committed Oct 1, 2023
1 parent 8997c6d commit e1a23bf
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 @@ -767,6 +767,9 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
(51186,'spell_summon_goregek_the_bristlepine_hunter'),
(51188,'spell_summon_dajik_the_wasp_hunter'),
(51189,'spell_summon_zepik_the_gorloc_hunter'),
(51190,'spell_summon_lafoo'),
(51191,'spell_summon_jaloot'),
(51192,'spell_summon_moodle'),
(51257,'spell_summon_possessed_crocolisk'),
(51330,'spell_shoot_rjr'),
(51511,'spell_toss_ice_boulder'),
Expand Down Expand Up @@ -794,6 +797,8 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
(52244,'spell_charm_geist'),
(52245,'spell_harvest_blight_crystal'),
(52247,'spell_target_crystal'),
(52276,'spell_summon_kartak'),
(52333,'spell_summon_sooholu'),
(52419,'spell_deflection'),
(52479,'spell_gift_of_the_harvester'),
(52519,'spell_ghoulplosion'),
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 @@ -650,6 +650,34 @@ struct SummonZepikTheGorlocHunter : public SpellScript
}
};

// 51190 - Summon Lafoo
struct SummonLafoo : public SpellScript
{
void OnSummon(Spell* spell, Creature* summon) const override
{
summon->SelectLevel(spell->GetCaster()->GetLevel());
}
};

// 51191 - Summon Jaloot
struct SummonJaloot : public SpellScript
{
void OnSummon(Spell* spell, Creature* summon) const override
{
summon->SelectLevel(spell->GetCaster()->GetLevel());
}
};

// 51192 - Summon Moodle
struct SummonMoodle : 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
{
Expand All @@ -659,6 +687,24 @@ struct SummonPossessedCrocolisk : public SpellScript
}
};

// 52276 - Summon Kartak
struct SummonKartak : public SpellScript
{
void OnSummon(Spell* spell, Creature* summon) const override
{
summon->SelectLevel(spell->GetCaster()->GetLevel());
}
};

// 52333 - Summon Soo-holu
struct SummonSooholu : public SpellScript
{
void OnSummon(Spell* spell, Creature* summon) const override
{
summon->SelectLevel(spell->GetCaster()->GetLevel());
}
};

// 52862 - Devour Wind
struct DevourWind : public SpellScript
{
Expand Down Expand Up @@ -752,7 +798,12 @@ void AddSC_sholazar_basin()
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<SummonLafoo>("spell_summon_lafoo");
RegisterSpellScript<SummonJaloot>("spell_summon_jaloot");
RegisterSpellScript<SummonMoodle>("spell_summon_moodle");
RegisterSpellScript<SummonPossessedCrocolisk>("spell_summon_possessed_crocolisk");
RegisterSpellScript<SummonKartak>("spell_summon_kartak");
RegisterSpellScript<SummonSooholu>("spell_summon_sooholu");
RegisterSpellScript<DevourWind>("spell_devour_wind");
RegisterSpellScript<DevourWater>("spell_devour_water");
RegisterSpellScript<TransformVisual>("spell_transform_visual");
Expand Down

0 comments on commit e1a23bf

Please sign in to comment.