mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-22 20:17:16 +00:00
[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 <noreply@anthropic.com>
This commit is contained in:
1 file changed
+1
-1
@@ -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,
|
||||||
|
|||||||
Reference in new issue
Block a user