mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
Compare commits
No commits in common. "571735cd576db0bfbbf621c5576c36a88d460e03" and "92fa97c3aa3d9391b895f525956b0f07678adcaa" have entirely different histories.
571735cd57
...
92fa97c3aa
@ -495,6 +495,22 @@ AiPlayerbot.FleeingEnabled = 1
|
||||
#
|
||||
####################################################################################################
|
||||
|
||||
####################################################################################################
|
||||
# GREATER BUFFS STRATEGIES
|
||||
#
|
||||
|
||||
# Min group size to use Greater buffs (Paladin, Mage, Druid)
|
||||
# Default: 3
|
||||
AiPlayerbot.MinBotsForGreaterBuff = 3
|
||||
|
||||
# Cooldown (seconds) between reagent-missing RP warnings, per bot & per buff
|
||||
# Default: 30
|
||||
AiPlayerbot.RPWarningCooldown = 30
|
||||
|
||||
#
|
||||
#
|
||||
####################################################################################################
|
||||
|
||||
####################################################################################################
|
||||
# CHEATS
|
||||
#
|
||||
|
||||
@ -86,7 +86,7 @@ bool TogglePetSpellAutoCastAction::Execute(Event /*event*/)
|
||||
|
||||
uint32 spellId = itr->first;
|
||||
const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
||||
if (!spellInfo || !spellInfo->IsAutocastable())
|
||||
if (!spellInfo->IsAutocastable())
|
||||
continue;
|
||||
|
||||
bool shouldApply = true;
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
|
||||
#include "WarriorActions.h"
|
||||
|
||||
#include "AiFactory.h"
|
||||
#include "Playerbots.h"
|
||||
|
||||
bool CastBerserkerRageAction::isPossible()
|
||||
@ -37,27 +36,6 @@ bool CastBerserkerRageAction::isUseful()
|
||||
|
||||
bool CastSunderArmorAction::isUseful()
|
||||
{
|
||||
Group* group = bot->GetGroup();
|
||||
if (!group)
|
||||
return false;
|
||||
|
||||
if (!botAI->IsTank(bot, false))
|
||||
{
|
||||
for (GroupReference* ref = group->GetFirstMember(); ref; ref = ref->next())
|
||||
{
|
||||
Player* member = ref->GetSource();
|
||||
if (!member || member == bot || !member->IsAlive() || !member->IsInWorld() ||
|
||||
member->GetMapId() != bot->GetMapId())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (member->getClass() == CLASS_WARRIOR &&
|
||||
botAI->IsTank(member, false))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Aura* aura = botAI->GetAura("sunder armor", GetTarget(), false, true);
|
||||
return !aura || aura->GetStackAmount() < 5 || aura->GetDuration() <= 6000;
|
||||
}
|
||||
|
||||
@ -112,7 +112,6 @@ std::vector<NextAction> ArmsWarriorStrategy::getDefaultActions()
|
||||
return {
|
||||
NextAction("bladestorm", ACTION_DEFAULT + 0.2f),
|
||||
NextAction("mortal strike", ACTION_DEFAULT + 0.1f),
|
||||
NextAction("sunder armor", ACTION_DEFAULT + 0.05f),
|
||||
NextAction("melee", ACTION_DEFAULT)
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user