mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Naxx thaddius strategy
This commit is contained in:
@@ -115,33 +115,42 @@ public:
|
||||
AnubrekhanTrigger(PlayerbotAI* ai) : BossPhaseTrigger(ai, "anub'rekhan", 0, "anub'rekhan trigger") {}
|
||||
};
|
||||
|
||||
// class ThaddiusPhasePetTrigger : public BossPhaseTrigger
|
||||
// {
|
||||
// public:
|
||||
// ThaddiusPhasePetTrigger(PlayerbotAI* ai) : BossPhaseTrigger(ai, "thaddius", 1 << (2 - 1), "thaddius phase pet") {}
|
||||
// };
|
||||
class ThaddiusPhasePetTrigger : public Trigger
|
||||
{
|
||||
public:
|
||||
ThaddiusPhasePetTrigger(PlayerbotAI* ai) : Trigger(ai, "thaddius phase pet"), helper(ai) {}
|
||||
bool IsActive() override;
|
||||
private:
|
||||
ThaddiusBossHelper helper;
|
||||
};
|
||||
|
||||
// class ThaddiusPhasePetLoseAggroTrigger : public ThaddiusPhasePetTrigger
|
||||
// {
|
||||
// public:
|
||||
// ThaddiusPhasePetLoseAggroTrigger(PlayerbotAI* ai) : ThaddiusPhasePetTrigger(ai) {}
|
||||
// virtual bool IsActive() {
|
||||
// Unit* target = AI_VALUE(Unit*, "current target");
|
||||
// return ThaddiusPhasePetTrigger::IsActive() && ai->IsTank(bot) && target && target->GetVictim() != bot;
|
||||
// }
|
||||
// };
|
||||
class ThaddiusPhasePetLoseAggroTrigger : public ThaddiusPhasePetTrigger
|
||||
{
|
||||
public:
|
||||
ThaddiusPhasePetLoseAggroTrigger(PlayerbotAI* ai) : ThaddiusPhasePetTrigger(ai) {}
|
||||
virtual bool IsActive() {
|
||||
Unit* target = AI_VALUE(Unit*, "current target");
|
||||
return ThaddiusPhasePetTrigger::IsActive() && botAI->IsTank(bot) && target && target->GetVictim() != bot;
|
||||
}
|
||||
};
|
||||
|
||||
// class ThaddiusPhaseTransitionTrigger : public BossPhaseTrigger
|
||||
// {
|
||||
// public:
|
||||
// ThaddiusPhaseTransitionTrigger(PlayerbotAI* ai) : BossPhaseTrigger(ai, "thaddius", 1 << (3 - 1), "thaddius phase transition") {}
|
||||
// };
|
||||
class ThaddiusPhaseTransitionTrigger : public Trigger
|
||||
{
|
||||
public:
|
||||
ThaddiusPhaseTransitionTrigger(PlayerbotAI* ai) : Trigger(ai, "thaddius phase transition"), helper(ai) {}
|
||||
bool IsActive() override;
|
||||
private:
|
||||
ThaddiusBossHelper helper;
|
||||
};
|
||||
|
||||
// class ThaddiusPhaseThaddiusTrigger : public BossPhaseTrigger
|
||||
// {
|
||||
// public:
|
||||
// ThaddiusPhaseThaddiusTrigger(PlayerbotAI* ai) : BossPhaseTrigger(ai, "thaddius", 1 << (4 - 1), "thaddius phase thaddius") {}
|
||||
// };
|
||||
class ThaddiusPhaseThaddiusTrigger : public Trigger
|
||||
{
|
||||
public:
|
||||
ThaddiusPhaseThaddiusTrigger(PlayerbotAI* ai) : Trigger(ai, "thaddius phase thaddius"), helper(ai) {}
|
||||
bool IsActive() override;
|
||||
private:
|
||||
ThaddiusBossHelper helper;
|
||||
};
|
||||
|
||||
class HorsemanAttractorsTrigger : public Trigger
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user