mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-23 21:46:24 +00:00
summon when group config
This commit is contained in:
@@ -41,5 +41,9 @@ bool AcceptInvitationAction::Execute(Event event)
|
||||
botAI->Reset();
|
||||
|
||||
botAI->TellMaster("Hello");
|
||||
|
||||
if (sPlayerbotAIConfig->summonWhenGroup) {
|
||||
Teleport(inviter, bot);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -6,13 +6,14 @@
|
||||
#define _PLAYERBOT_ACCEPTINVITATIONACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
#include "UseMeetingStoneAction.h"
|
||||
|
||||
class PlayerbotAI;
|
||||
|
||||
class AcceptInvitationAction : public Action
|
||||
class AcceptInvitationAction : public SummonAction
|
||||
{
|
||||
public:
|
||||
AcceptInvitationAction(PlayerbotAI* botAI) : Action(botAI, "accept invitation") { }
|
||||
AcceptInvitationAction(PlayerbotAI* botAI) : SummonAction(botAI, "accept invitation") { }
|
||||
|
||||
bool Execute(Event event) override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user