Fix for self-targeting issue in bot_command_follow

This commit is contained in:
Uleat 2016-03-26 20:14:22 -04:00
parent dc09d6dfbd
commit 84460e3a1f

View File

@ -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 <target> a friendly mob to use this command");
return;
}