Log in

View Full Version : COMMITTED: #bot pet remove fix


Criimson
07-21-2011, 07:12 PM
I noticed that the command always returned must target enchanter, druid, necro

Since there are so many new submissions I am posting it as direct change instead of a patch

3rd line down from //Remove bots pet needs to be

if (c->IsGrouped() && c->GetTarget()->IsBot() && (c->GetTarget()->CastToBot()->GetBotOwner() == c)

Criimson

EDIT:
Realized I'd like to make it easy on you. Search for
// Remove Bot's Pet
if(!strcasecmp(sep->arg[1], "pet") && !strcasecmp(sep->arg[2], "remove")) {
if(c->GetTarget() != NULL) {

Congdar
07-23-2011, 03:51 PM
committed in svn 1981