mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-04 11:23:48 +00:00
Added range checks for running away if too close
Added range checks for running away if too close - The warlocks were happily standing in cleave range and dieing. Now, they will backpedal if too close to an enemy. I also added custom logic to check if in demonology form before backpedaling. I also removed shadow cleave, as the dps increase with negligible (0.1%) and it was causing errors in the actions, resulting in the warlock standing idle in combat.
This commit is contained in:
@@ -271,4 +271,18 @@ class MoltenCoreTrigger : public HasAuraTrigger
|
||||
public:
|
||||
MoltenCoreTrigger(PlayerbotAI* ai) : HasAuraTrigger(ai, "molten core") {}
|
||||
};
|
||||
|
||||
class MetamorphosisNotActiveTrigger : public HasNoAuraTrigger
|
||||
{
|
||||
public:
|
||||
MetamorphosisNotActiveTrigger(PlayerbotAI* ai) : HasNoAuraTrigger(ai, "metamorphosis") {}
|
||||
};
|
||||
|
||||
class MetaMeleeEnemyTooCloseForSpellTrigger : public TwoTriggers
|
||||
{
|
||||
public:
|
||||
MetaMeleeEnemyTooCloseForSpellTrigger(PlayerbotAI* ai)
|
||||
: TwoTriggers(ai, "enemy too close for spell", "metamorphosis not active") {}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user