mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +00:00
Fix for self-targeting issue in bot_command_follow
This commit is contained in:
parent
dc09d6dfbd
commit
84460e3a1f
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user