mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-28 07:56:24 +00:00
Run clang-format
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* 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.
|
||||
* 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_WARRIORACTIONS_H
|
||||
@@ -18,15 +19,16 @@ BUFF_ACTION(CastBerserkerStanceAction, "berserker stance");
|
||||
|
||||
// shouts
|
||||
BUFF_ACTION(CastBattleShoutAction, "battle shout");
|
||||
MELEE_ACTION_U(CastBattleShoutTauntAction, "battle shout", CastSpellAction::isUseful()); // useful to rebuff
|
||||
DEBUFF_ACTION_R(CastDemoralizingShoutAction, "demoralizing shout", 8.0f); // low range debuff
|
||||
MELEE_ACTION_U(CastBattleShoutTauntAction, "battle shout", CastSpellAction::isUseful()); // useful to rebuff
|
||||
DEBUFF_ACTION_R(CastDemoralizingShoutAction, "demoralizing shout", 8.0f); // low range debuff
|
||||
class CastDemoralizingShoutWithoutLifeTimeCheckAction : public CastDebuffSpellAction
|
||||
{
|
||||
public:
|
||||
CastDemoralizingShoutWithoutLifeTimeCheckAction(PlayerbotAI* botAI) : CastDebuffSpellAction(botAI, "demoralizing shout", false, 0.0f) \
|
||||
{
|
||||
range = 8.0f;
|
||||
}
|
||||
public:
|
||||
CastDemoralizingShoutWithoutLifeTimeCheckAction(PlayerbotAI* botAI)
|
||||
: CastDebuffSpellAction(botAI, "demoralizing shout", false, 0.0f)
|
||||
{
|
||||
range = 8.0f;
|
||||
}
|
||||
};
|
||||
|
||||
MELEE_ACTION(CastChallengingShoutAction, "challenging shout");
|
||||
@@ -42,8 +44,8 @@ DEBUFF_CHECKISOWNER_ACTION(CastRendAction, "rend");
|
||||
|
||||
class CastRendOnAttackerAction : public CastDebuffSpellOnMeleeAttackerAction
|
||||
{
|
||||
public:
|
||||
CastRendOnAttackerAction(PlayerbotAI* botAI) : CastDebuffSpellOnMeleeAttackerAction(botAI, "rend") {}
|
||||
public:
|
||||
CastRendOnAttackerAction(PlayerbotAI* botAI) : CastDebuffSpellOnMeleeAttackerAction(botAI, "rend") {}
|
||||
};
|
||||
|
||||
MELEE_ACTION(CastThunderClapAction, "thunder clap");
|
||||
@@ -96,7 +98,9 @@ MELEE_ACTION(CastShieldBashAction, "shield bash");
|
||||
ENEMY_HEALER_ACTION(CastShieldBashOnEnemyHealerAction, "shield bash");
|
||||
MELEE_ACTION(CastRevengeAction, "revenge");
|
||||
BUFF_ACTION(CastShieldBlockAction, "shield block");
|
||||
DEBUFF_ACTION_U(CastDisarmAction, "disarm", GetTarget() && GetTarget()->IsPlayer() ? !botAI->IsRanged((Player*)GetTarget()) : CastDebuffSpellAction::isUseful());
|
||||
DEBUFF_ACTION_U(CastDisarmAction, "disarm",
|
||||
GetTarget() && GetTarget()->IsPlayer() ? !botAI->IsRanged((Player*)GetTarget())
|
||||
: CastDebuffSpellAction::isUseful());
|
||||
DEBUFF_ENEMY_ACTION(CastDisarmOnAttackerAction, "disarm");
|
||||
BUFF_ACTION(CastShieldWallAction, "shield wall");
|
||||
// protection 2.4.3
|
||||
@@ -115,13 +119,13 @@ SNARE_ACTION(CastShockwaveSnareAction, "shockwave");
|
||||
|
||||
class CastSunderArmorAction : public CastDebuffSpellAction
|
||||
{
|
||||
public:
|
||||
CastSunderArmorAction(PlayerbotAI* botAI) : CastDebuffSpellAction(botAI, "sunder armor")
|
||||
{
|
||||
range = ATTACK_DISTANCE;
|
||||
}
|
||||
public:
|
||||
CastSunderArmorAction(PlayerbotAI* botAI) : CastDebuffSpellAction(botAI, "sunder armor")
|
||||
{
|
||||
range = ATTACK_DISTANCE;
|
||||
}
|
||||
|
||||
bool isUseful() override;
|
||||
bool isUseful() override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user