From 7834222b5fa368cc3708900b0c2a83fd69efdfcc Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Tue, 10 Dec 2024 13:59:48 -0600 Subject: [PATCH] Add bot check to DetermineSpellTargets for IsIllusionSpell --- zone/spells.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/zone/spells.cpp b/zone/spells.cpp index 9e73d64f2..b6540d0cc 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -1925,6 +1925,7 @@ bool Mob::DetermineSpellTargets(uint16 spell_id, Mob *&spell_target, Mob *&ae_ce && spell_target != nullptr // null ptr crash safeguard && !spell_target->IsNPC() // still self only if NPC targetted && IsClient() + && IsOfClientBot() && (IsGrouped() // still self only if not grouped || IsRaidGrouped()) && (HasProjectIllusion())){