From 1d9cb5c7cc56febe2134bb25bc0a29d09072556d Mon Sep 17 00:00:00 2001 From: Joseph Date: Wed, 18 Nov 2026 02:32:39 -0500 Subject: [PATCH] [Bots] Fix zone crash on ^cast pets / ^cast escapes with no target (#5145) Co-authored-by: JosephChristiano <19996602+JosephChristiano@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 --- zone/bot_commands/bot_cast.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot_commands/bot_cast.cpp b/zone/bot_commands/bot_cast.cpp index 0f9e954dc..f76ee3e7c 100644 --- a/zone/bot_commands/bot_cast.cpp +++ b/zone/bot_commands/bot_cast.cpp @@ -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()) { c->Message( Chat::Yellow,