[Bots] Fix zone crash on ^cast pets / ^cast escapes with no target (#5145)
Build / Linux (push) Canceled after 0s
Build / Windows (push) Canceled after 0s

Co-authored-by: JosephChristiano <19996602+JosephChristiano@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
authored and GitHub committed 2026-11-17 23:32:39 -08:00
1 parent 5fa17763e5
commit 1d9cb5c7cc
1 file changed
+1 -1
+1 -1
View File
@@ -357,7 +357,7 @@ void bot_command_cast(Client* c, const Seperator* sep)
} }
} }
if (!aa_type && !by_spell_id) { if (!aa_type && !by_spell_id && tar) {
if (IsPetBotSpellType(spell_type) && !tar->IsPet()) { if (IsPetBotSpellType(spell_type) && !tar->IsPet()) {
c->Message( c->Message(
Chat::Yellow, Chat::Yellow,