mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 10:30:01 +01:00
27 lines
893 B
C++
27 lines
893 B
C++
/*
|
|
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
|
|
*/
|
|
|
|
#include "DuelStrategy.h"
|
|
#include "Playerbots.h"
|
|
|
|
void DuelStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
|
{
|
|
PassTroughStrategy::InitTriggers(triggers);
|
|
|
|
triggers.push_back(new TriggerNode("duel requested", NextAction::array(0, new NextAction("accept duel", relevance), nullptr)));
|
|
triggers.push_back(new TriggerNode("no attackers", NextAction::array(0, new NextAction("attack duel opponent", 70.0f), nullptr)));
|
|
}
|
|
|
|
DuelStrategy::DuelStrategy(PlayerbotAI* botAI) : PassTroughStrategy(botAI)
|
|
{
|
|
}
|
|
|
|
void StartDuelStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
|
{
|
|
}
|
|
|
|
StartDuelStrategy::StartDuelStrategy(PlayerbotAI* botAI) : Strategy(botAI)
|
|
{
|
|
}
|