We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e34e26 commit d96f240Copy full SHA for d96f240
src/modules/Bots/playerbot/strategy/actions/LeaveGroupAction.h
@@ -11,13 +11,11 @@ namespace ai
11
12
virtual bool Execute(Event event)
13
{
14
- if (!bot->GetGroup())
+ if (bot->GetGroup())
15
16
- return false;
+ ai->TellMaster("Goodbye!", PLAYERBOT_SECURITY_TALK);
17
}
18
19
- ai->TellMaster("Goodbye!", PLAYERBOT_SECURITY_TALK);
20
-
21
WorldPacket p;
22
string member = bot->GetName();
23
p << uint32(PARTY_OP_LEAVE) << member << uint32(0);
@@ -31,6 +29,9 @@ namespace ai
31
29
32
30
33
ai->ResetStrategies();
+ ai->ChangeStrategy("-follow master", BOT_STATE_NON_COMBAT);
+ ai->ChangeStrategy("-follow master", BOT_STATE_DEAD);
34
+ ai->ChangeStrategy("-follow master", BOT_STATE_COMBAT);
35
return true;
36
37
};
0 commit comments