Skip to content

Commit

Permalink
Make arcane cloaking target target not caster
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Mar 8, 2025
1 parent 6fc191f commit 8d12d24
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 @@ -155,16 +155,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 8d12d24

Please sign in to comment.