Skip to content

Commit bc972d8

Browse files
committed
ST: Deep slumber wipes threat on hit target
1 parent 7570d1c commit bc972d8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

sql/scriptdev2/spell.sql

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
5151
(11889,'spell_capture_mountain_giant'),
5252
(11610,'spell_gammerita_turtle_camera'),
5353
(12479,'spell_hex_of_jammalan'),
54+
(12890,'spell_deep_slumber'),
5455
(13258,'spell_summon_goblin_bomb'),
5556
(16380,'spell_greater_invisibility_mob'),
5657
(17016,'spell_placing_beacon_torch'),

src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/sunken_temple/sunken_templeScripts.cpp

+15
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,20 @@ struct HexOfJammalanAura : public AuraScript // s.12479
282282
}
283283
};
284284

285+
// 12890 - Deep Slumber
286+
struct DeepSlumber : public SpellScript
287+
{
288+
void OnEffectExecute(Spell* spell, SpellEffectIndex effIdx) const override
289+
{
290+
if (effIdx != EFFECT_INDEX_0)
291+
return;
292+
293+
Unit* target = spell->GetUnitTarget();
294+
Unit* caster = spell->GetCaster();
295+
caster->getThreatManager().modifyThreatPercent(target, -100);
296+
}
297+
};
298+
285299
void AddSC_sunken_temple()
286300
{
287301
Script* pNewScript = new Script;
@@ -312,4 +326,5 @@ void AddSC_sunken_temple()
312326
RegisterSpellScript<SummonHakkar>("spell_summon_hakkar");
313327
RegisterSpellScript<HakkarSummoned>("spell_hakkar_summoned");
314328
RegisterSpellScript<HexOfJammalanAura>("spell_hex_of_jammalan");
329+
RegisterSpellScript<DeepSlumber>("spell_deep_slumber");
315330
}

0 commit comments

Comments
 (0)