mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Warlock
This commit is contained in:
@@ -42,3 +42,8 @@ bool UnstableAfflictionOnAttackerTrigger::IsActive()
|
|||||||
// !botAI->HasAura("unstable affliction", GetTarget(), false, true);
|
// !botAI->HasAura("unstable affliction", GetTarget(), false, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool DecimationTrigger::IsActive()
|
||||||
|
{
|
||||||
|
Aura *aura = botAI->GetAura(getName(), GetTarget(), false, true);
|
||||||
|
return aura->GetDuration() > 3000;
|
||||||
|
}
|
||||||
@@ -142,6 +142,7 @@ class DecimationTrigger : public HasAuraTrigger
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DecimationTrigger(PlayerbotAI* ai) : HasAuraTrigger(ai, "decimation") {}
|
DecimationTrigger(PlayerbotAI* ai) : HasAuraTrigger(ai, "decimation") {}
|
||||||
|
bool IsActive() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class MoltenCoreTrigger : public HasAuraTrigger
|
class MoltenCoreTrigger : public HasAuraTrigger
|
||||||
|
|||||||
Reference in New Issue
Block a user