mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
- Slad'ran (Gun'Drak): DPS will now kill snake wraps - King Ymiron (Utgarde Pinnacle): Bots will stop attack during Bane. This still needs work, sometimes if they are mid-cast they will still let it finish and blow everyone up
23 lines
929 B
C++
23 lines
929 B
C++
#ifndef _PLAYERBOT_WOTLKDUNGEONGDACTIONCONTEXT_H
|
|
#define _PLAYERBOT_WOTLKDUNGEONGDACTIONCONTEXT_H
|
|
|
|
#include "Action.h"
|
|
#include "NamedObjectContext.h"
|
|
#include "GundrakActions.h"
|
|
|
|
class WotlkDungeonGDActionContext : public NamedObjectContext<Action>
|
|
{
|
|
public:
|
|
WotlkDungeonGDActionContext() {
|
|
creators["avoid poison nova"] = &WotlkDungeonGDActionContext::avoid_poison_nova;
|
|
creators["attack snake wrap"] = &WotlkDungeonGDActionContext::attack_snake_wrap;
|
|
creators["avoid whirling slash"] = &WotlkDungeonGDActionContext::avoid_whirling_slash;
|
|
}
|
|
private:
|
|
static Action* avoid_poison_nova(PlayerbotAI* ai) { return new AvoidPoisonNovaAction(ai); }
|
|
static Action* attack_snake_wrap(PlayerbotAI* ai) { return new AttackSnakeWrapAction(ai); }
|
|
static Action* avoid_whirling_slash(PlayerbotAI* ai) { return new AvoidWhirlingSlashAction(ai); }
|
|
};
|
|
|
|
#endif
|