Skip to content

Commit

Permalink
ST: Deep slumber wipes threat on hit target
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Nov 22, 2024
1 parent 7570d1c commit bc972d8
Show file tree
Hide file tree
Showing 2 changed files with 16 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 @@ -51,6 +51,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
(11889,'spell_capture_mountain_giant'),
(11610,'spell_gammerita_turtle_camera'),
(12479,'spell_hex_of_jammalan'),
(12890,'spell_deep_slumber'),
(13258,'spell_summon_goblin_bomb'),
(16380,'spell_greater_invisibility_mob'),
(17016,'spell_placing_beacon_torch'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,20 @@ struct HexOfJammalanAura : public AuraScript // s.12479
}
};

// 12890 - Deep Slumber
struct DeepSlumber : public SpellScript
{
void OnEffectExecute(Spell* spell, SpellEffectIndex effIdx) const override
{
if (effIdx != EFFECT_INDEX_0)
return;

Unit* target = spell->GetUnitTarget();
Unit* caster = spell->GetCaster();
caster->getThreatManager().modifyThreatPercent(target, -100);
}
};

void AddSC_sunken_temple()
{
Script* pNewScript = new Script;
Expand Down Expand Up @@ -312,4 +326,5 @@ void AddSC_sunken_temple()
RegisterSpellScript<SummonHakkar>("spell_summon_hakkar");
RegisterSpellScript<HakkarSummoned>("spell_hakkar_summoned");
RegisterSpellScript<HexOfJammalanAura>("spell_hex_of_jammalan");
RegisterSpellScript<DeepSlumber>("spell_deep_slumber");
}

0 comments on commit bc972d8

Please sign in to comment.