mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-31 01:13:48 +00:00
Trigger fixes and Warrior AI tweaks
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#ifndef _PLAYERBOT_GENERICTRIGGERS_H
|
||||
#define _PLAYERBOT_GENERICTRIGGERS_H
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "RangeTriggers.h"
|
||||
#include "HealthTriggers.h"
|
||||
|
||||
@@ -133,6 +135,14 @@ class SpellCanBeCastTrigger : public SpellTrigger
|
||||
bool IsActive() override;
|
||||
};
|
||||
|
||||
class SpellNoCooldownTrigger : public SpellTrigger
|
||||
{
|
||||
public:
|
||||
SpellNoCooldownTrigger(PlayerbotAI* botAI, std::string const spell) : SpellTrigger(botAI, spell) {}
|
||||
|
||||
bool IsActive() override;
|
||||
};
|
||||
|
||||
// TODO: check other targets
|
||||
class InterruptSpellTrigger : public SpellTrigger
|
||||
{
|
||||
@@ -349,6 +359,21 @@ class AndTrigger : public Trigger
|
||||
Trigger* rs;
|
||||
};
|
||||
|
||||
class TwoTriggers : public Trigger
|
||||
{
|
||||
public:
|
||||
explicit TwoTriggers(PlayerbotAI* botAI, std::string name1 = "", std::string name2 = "") : Trigger(botAI)
|
||||
{
|
||||
this->name1 = std::move(name1);
|
||||
this->name2 = std::move(name2);
|
||||
}
|
||||
bool IsActive() override;
|
||||
std::string const getName() override;
|
||||
protected:
|
||||
std::string name1;
|
||||
std::string name2;
|
||||
};
|
||||
|
||||
class SnareTargetTrigger : public DebuffTrigger
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user