Add bot check to DetermineSpellTargets for IsIllusionSpell

This commit is contained in:
nytmyr
2024-12-10 13:59:48 -06:00
parent c42d84b59a
commit 7834222b5f
+1
View File
@@ -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())){