Skip to content

Commit

Permalink
Sd2: Spell 57413
Browse files Browse the repository at this point in the history
Scripted
  • Loading branch information
Grz3s committed Jul 18, 2024
1 parent 69169bf commit 473666e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions sql/scriptdev2/spell.sql
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
(57283,'spell_remove_mushroom_power'),
(57385,'spell_argent_cannon'),
(57412,'spell_reckoning_bomb'),
(57413,'spell_fitful_dream'),
(57415,'spell_the_reckoning'),
(57418,'spell_to_icecrown_air_ship_h_summon_vehicle'),
(57473,'spell_arcane_storm'),
Expand Down
13 changes: 13 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,18 @@ struct TheReckoning : public SpellScript
bool OnCheckTarget(const Spell* /*spell*/, GameObject* /*target*/, SpellEffectIndex /*eff*/) const { return false; }
};

// 57413 - Fitful Dream
struct FitfulDream : public AuraScript
{
void OnApply(Aura* aura, bool apply) const override
{
if (!apply && aura->GetRemoveMode() == AURA_REMOVE_BY_DEFAULT)
{
aura->GetTarget()->CastSpell(nullptr, 57515, TRIGGERED_OLD_TRIGGERED);
}
}
};

void AddSC_icecrown()
{
Script* pNewScript = new Script;
Expand Down Expand Up @@ -1147,4 +1159,5 @@ void AddSC_icecrown()
RegisterSpellScript<ArgentCannon>("spell_argent_cannon");
RegisterSpellScript<ReckoningBomb>("spell_reckoning_bomb");
RegisterSpellScript<TheReckoning>("spell_the_reckoning");
RegisterSpellScript<FitfulDream>("spell_fitful_dream");
}

0 comments on commit 473666e

Please sign in to comment.