From 84460e3a1ffba6bc7c5eb7875fed185253c2ab08 Mon Sep 17 00:00:00 2001 From: Uleat Date: Sat, 26 Mar 2016 20:14:22 -0400 Subject: [PATCH] Fix for self-targeting issue in bot_command_follow --- zone/bot_command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot_command.cpp b/zone/bot_command.cpp index 12b50e9d2..558889962 100644 --- a/zone/bot_command.cpp +++ b/zone/bot_command.cpp @@ -2973,7 +2973,7 @@ void bot_command_follow(Client *c, const Seperator *sep) } else { if (c->GetTarget()) { - if (c->IsAttackAllowed(c->GetTarget())) { + if (c != c->GetTarget() && c->IsAttackAllowed(c->GetTarget())) { c->Message(m_fail, "You must a friendly mob to use this command"); return; }