Add bot check to DetermineSpellTargets for IsIllusionSpell

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