Skip to content

Commit

Permalink
Update spell_scripts.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Dec 26, 2024
1 parent f189b1e commit a64d122
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/game/AI/ScriptDevAI/scripts/world/spell_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,16 +667,18 @@ struct WondervoltTrap : public SpellScript
* Quests 9121, 9122, 9123, 9378 - Naxxramas, The Dread Citadel
**************************************************************/

// 28006 - Arcane Cloaking
struct ArcaneCloaking : public SpellScript
{
void OnEffectExecute(Spell* spell, SpellEffectIndex effIdx) const override
{
if (effIdx == EFFECT_INDEX_0)
{
Unit* caster = spell->GetCaster();
Unit* target = spell->GetUnitTarget();
// Naxxramas Entry Flag Effect DND
if (caster && caster->GetTypeId() == TYPEID_PLAYER)
caster->CastSpell(caster, 29296, TRIGGERED_OLD_TRIGGERED); // Cast Naxxramas Entry Flag Trigger DND
if (target && target->IsPlayer())
caster->CastSpell(target, 29296, TRIGGERED_OLD_TRIGGERED); // Cast Naxxramas Entry Flag Trigger DND
}
}
};
Expand Down

0 comments on commit a64d122

Please sign in to comment.