mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Big update.
This commit is contained in:
149
src/strategy/paladin/PaladinTriggers.h
Normal file
149
src/strategy/paladin/PaladinTriggers.h
Normal file
@@ -0,0 +1,149 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_PALADINTRIGGERS_H
|
||||
#define _PLAYERBOT_PALADINTRIGGERS_H
|
||||
|
||||
#include "CureTriggers.h"
|
||||
#include "SharedDefines.h"
|
||||
|
||||
class PlayerbotAI;
|
||||
|
||||
BUFF_TRIGGER(HolyShieldTrigger, "holy shield");
|
||||
BUFF_TRIGGER(RighteousFuryTrigger, "righteous fury");
|
||||
|
||||
BUFF_TRIGGER(RetributionAuraTrigger, "retribution aura");
|
||||
|
||||
class CrusaderAuraTrigger : public BuffTrigger
|
||||
{
|
||||
public:
|
||||
CrusaderAuraTrigger(PlayerbotAI* botAI) : BuffTrigger(botAI, "crusader aura") { }
|
||||
|
||||
bool IsActive() override;
|
||||
};
|
||||
|
||||
class SealTrigger : public BuffTrigger
|
||||
{
|
||||
public:
|
||||
SealTrigger(PlayerbotAI* botAI) : BuffTrigger(botAI, "seal of justice") { }
|
||||
|
||||
bool IsActive() override;
|
||||
};
|
||||
|
||||
DEBUFF_TRIGGER(JudgementOfLightTrigger, "judgement of light");
|
||||
DEBUFF_TRIGGER(JudgementOfWisdomTrigger, "judgement of wisdom");
|
||||
|
||||
class BlessingOnPartyTrigger : public BuffOnPartyTrigger
|
||||
{
|
||||
public:
|
||||
BlessingOnPartyTrigger(PlayerbotAI* botAI) : BuffOnPartyTrigger(botAI, "blessing of kings,blessing of might,blessing of wisdom", 2) { }
|
||||
};
|
||||
|
||||
class BlessingTrigger : public BuffTrigger
|
||||
{
|
||||
public:
|
||||
BlessingTrigger(PlayerbotAI* botAI) : BuffTrigger(botAI, "blessing of sanctuary", 2) { }
|
||||
|
||||
bool IsActive() override;
|
||||
};
|
||||
|
||||
class HammerOfJusticeInterruptSpellTrigger : public InterruptSpellTrigger
|
||||
{
|
||||
public:
|
||||
HammerOfJusticeInterruptSpellTrigger(PlayerbotAI* botAI) : InterruptSpellTrigger(botAI, "hammer of justice") { }
|
||||
};
|
||||
|
||||
class HammerOfJusticeSnareTrigger : public SnareTargetTrigger
|
||||
{
|
||||
public:
|
||||
HammerOfJusticeSnareTrigger(PlayerbotAI* botAI) : SnareTargetTrigger(botAI, "hammer of justice") { }
|
||||
};
|
||||
|
||||
class ArtOfWarTrigger : public HasAuraTrigger
|
||||
{
|
||||
public:
|
||||
ArtOfWarTrigger(PlayerbotAI* botAI) : HasAuraTrigger(botAI, "the art of war") { }
|
||||
};
|
||||
|
||||
class ShadowResistanceAuraTrigger : public BuffTrigger
|
||||
{
|
||||
public:
|
||||
ShadowResistanceAuraTrigger(PlayerbotAI* botAI) : BuffTrigger(botAI, "shadow resistance aura") { }
|
||||
};
|
||||
|
||||
class FrostResistanceAuraTrigger : public BuffTrigger
|
||||
{
|
||||
public:
|
||||
FrostResistanceAuraTrigger(PlayerbotAI* botAI) : BuffTrigger(botAI, "frost resistance aura") { }
|
||||
};
|
||||
|
||||
class FireResistanceAuraTrigger : public BuffTrigger
|
||||
{
|
||||
public:
|
||||
FireResistanceAuraTrigger(PlayerbotAI* botAI) : BuffTrigger(botAI, "fire resistance aura") { }
|
||||
};
|
||||
|
||||
class DevotionAuraTrigger : public BuffTrigger
|
||||
{
|
||||
public:
|
||||
DevotionAuraTrigger(PlayerbotAI* botAI) : BuffTrigger(botAI, "devotion aura") { }
|
||||
};
|
||||
|
||||
class CleanseCureDiseaseTrigger : public NeedCureTrigger
|
||||
{
|
||||
public:
|
||||
CleanseCureDiseaseTrigger(PlayerbotAI* botAI) : NeedCureTrigger(botAI, "cleanse", DISPEL_DISEASE) { }
|
||||
};
|
||||
|
||||
class CleanseCurePartyMemberDiseaseTrigger : public PartyMemberNeedCureTrigger
|
||||
{
|
||||
public:
|
||||
CleanseCurePartyMemberDiseaseTrigger(PlayerbotAI* botAI) : PartyMemberNeedCureTrigger(botAI, "cleanse", DISPEL_DISEASE) { }
|
||||
};
|
||||
|
||||
class CleanseCurePoisonTrigger : public NeedCureTrigger
|
||||
{
|
||||
public:
|
||||
CleanseCurePoisonTrigger(PlayerbotAI* botAI) : NeedCureTrigger(botAI, "cleanse", DISPEL_POISON) { }
|
||||
};
|
||||
|
||||
class CleanseCurePartyMemberPoisonTrigger : public PartyMemberNeedCureTrigger
|
||||
{
|
||||
public:
|
||||
CleanseCurePartyMemberPoisonTrigger(PlayerbotAI* botAI) : PartyMemberNeedCureTrigger(botAI, "cleanse", DISPEL_POISON) { }
|
||||
};
|
||||
|
||||
class CleanseCureMagicTrigger : public NeedCureTrigger
|
||||
{
|
||||
public:
|
||||
CleanseCureMagicTrigger(PlayerbotAI* botAI) : NeedCureTrigger(botAI, "cleanse", DISPEL_MAGIC) { }
|
||||
};
|
||||
|
||||
class CleanseCurePartyMemberMagicTrigger : public PartyMemberNeedCureTrigger
|
||||
{
|
||||
public:
|
||||
CleanseCurePartyMemberMagicTrigger(PlayerbotAI* botAI) : PartyMemberNeedCureTrigger(botAI, "cleanse", DISPEL_MAGIC) { }
|
||||
};
|
||||
|
||||
class HammerOfJusticeEnemyHealerTrigger : public InterruptEnemyHealerTrigger
|
||||
{
|
||||
public:
|
||||
HammerOfJusticeEnemyHealerTrigger(PlayerbotAI* botAI) : InterruptEnemyHealerTrigger(botAI, "hammer of justice") { }
|
||||
};
|
||||
|
||||
class DivineFavorTrigger : public BuffTrigger
|
||||
{
|
||||
public:
|
||||
DivineFavorTrigger(PlayerbotAI* botAI) : BuffTrigger(botAI, "divine favor") { }
|
||||
};
|
||||
|
||||
class TurnUndeadTrigger : public HasCcTargetTrigger
|
||||
{
|
||||
public:
|
||||
TurnUndeadTrigger(PlayerbotAI* botAI) : HasCcTargetTrigger(botAI, "turn undead") { }
|
||||
};
|
||||
|
||||
DEBUFF_TRIGGER(AvengerShieldTrigger, "avenger's shield");
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user