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
918 B
C++
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
|