mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-25 22:46:25 +00:00
Oculus - fix flying/attacking drake (#827)
* - fixed bug with duplicated action name "fly drake" * - fixed bug with duplicated action name "drake attack" * - fixed eoe strategy after bugfixes
This commit is contained in:
@@ -12,8 +12,8 @@ class WotlkDungeonOccActionContext : public NamedObjectContext<Action>
|
||||
creators["avoid unstable sphere"] = &WotlkDungeonOccActionContext::avoid_unstable_sphere;
|
||||
creators["mount drake"] = &WotlkDungeonOccActionContext::mount_drake;
|
||||
creators["dismount drake"] = &WotlkDungeonOccActionContext::dismount_drake;
|
||||
creators["fly drake"] = &WotlkDungeonOccActionContext::fly_drake;
|
||||
creators["drake attack"] = &WotlkDungeonOccActionContext::drake_attack;
|
||||
creators["occ fly drake"] = &WotlkDungeonOccActionContext::occ_fly_drake;
|
||||
creators["occ drake attack"] = &WotlkDungeonOccActionContext::occ_drake_attack;
|
||||
creators["avoid arcane explosion"] = &WotlkDungeonOccActionContext::avoid_arcane_explosion;
|
||||
creators["time bomb spread"] = &WotlkDungeonOccActionContext::time_bomb_spread;
|
||||
}
|
||||
@@ -21,8 +21,8 @@ class WotlkDungeonOccActionContext : public NamedObjectContext<Action>
|
||||
static Action* avoid_unstable_sphere(PlayerbotAI* ai) { return new AvoidUnstableSphereAction(ai); }
|
||||
static Action* mount_drake(PlayerbotAI* ai) { return new MountDrakeAction(ai); }
|
||||
static Action* dismount_drake(PlayerbotAI* ai) { return new DismountDrakeAction(ai); }
|
||||
static Action* fly_drake(PlayerbotAI* ai) { return new OccFlyDrakeAction(ai); }
|
||||
static Action* drake_attack(PlayerbotAI* ai) { return new OccDrakeAttackAction(ai); }
|
||||
static Action* occ_fly_drake(PlayerbotAI* ai) { return new OccFlyDrakeAction(ai); }
|
||||
static Action* occ_drake_attack(PlayerbotAI* ai) { return new OccDrakeAttackAction(ai); }
|
||||
static Action* avoid_arcane_explosion(PlayerbotAI* ai) { return new AvoidArcaneExplosionAction(ai); }
|
||||
static Action* time_bomb_spread(PlayerbotAI* ai) { return new TimeBombSpreadAction(ai); }
|
||||
};
|
||||
|
||||
@@ -15,9 +15,9 @@ void WotlkDungeonOccStrategy::InitTriggers(std::vector<TriggerNode*> &triggers)
|
||||
triggers.push_back(new TriggerNode("drake dismount",
|
||||
NextAction::array(0, new NextAction("dismount drake", ACTION_RAID + 5), nullptr)));
|
||||
triggers.push_back(new TriggerNode("group flying",
|
||||
NextAction::array(0, new NextAction("fly drake", ACTION_NORMAL + 1), nullptr)));
|
||||
NextAction::array(0, new NextAction("occ fly drake", ACTION_NORMAL + 1), nullptr)));
|
||||
triggers.push_back(new TriggerNode("drake combat",
|
||||
NextAction::array(0, new NextAction("drake attack", ACTION_NORMAL + 5), nullptr)));
|
||||
NextAction::array(0, new NextAction("occ drake attack", ACTION_NORMAL + 5), nullptr)));
|
||||
|
||||
// Varos Cloudstrider
|
||||
// Seems to be no way to identify the marked cores, may need to hook boss AI..
|
||||
|
||||
Reference in New Issue
Block a user