mod-playerbots/src/strategy/dungeons/wotlk/utgardepinnacle/UtgardePinnacleActionContext.h
Bobblybook e3cb8e9377 Dungeon strat improvements (GD & UP)
- 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
2024-11-10 01:54:42 +11:00

23 lines
918 B
C++

#ifndef _PLAYERBOT_WOTLKDUNGEONUPACTIONCONTEXT_H
#define _PLAYERBOT_WOTLKDUNGEONUPACTIONCONTEXT_H
#include "Action.h"
#include "NamedObjectContext.h"
#include "UtgardePinnacleActions.h"
class WotlkDungeonUPActionContext : public NamedObjectContext<Action>
{
public:
WotlkDungeonUPActionContext() {
creators["avoid freezing cloud"] = &WotlkDungeonUPActionContext::avoid_freezing_cloud;
creators["avoid skadi whirlwind"] = &WotlkDungeonUPActionContext::avoid_whirlwind;
creators["stop attack"] = &WotlkDungeonUPActionContext::stop_attack;
}
private:
static Action* avoid_freezing_cloud(PlayerbotAI* ai) { return new AvoidFreezingCloudAction(ai); }
static Action* avoid_whirlwind(PlayerbotAI* ai) { return new AvoidSkadiWhirlwindAction(ai); }
static Action* stop_attack(PlayerbotAI* ai) { return new DropTargetAction(ai); }
};
#endif