mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-17 10:45:43 +00:00
Minor improvments on logs, stats weights and aoe distance calculation (#995)
* StatsCollector for paladin spell * Remove error log on MoveFromGroup * Log and timer for CreateRandomBots * Improve aoe trigger distance calculation * Reduce spirit weights for heal priest and paladin
This commit is contained in:
@@ -1583,7 +1583,7 @@ bool MovementAction::MoveAway(Unit* target, float distance, bool backwards)
|
||||
// just calculates average position of group and runs away from that position
|
||||
bool MovementAction::MoveFromGroup(float distance)
|
||||
{
|
||||
LOG_ERROR("playerbots", "MovementAction::MoveFromGroup");
|
||||
// LOG_ERROR("playerbots", "MovementAction::MoveFromGroup");
|
||||
//if (Player* master = botAI->GetMaster())
|
||||
//{
|
||||
// return MoveAway(master);
|
||||
|
||||
@@ -829,11 +829,6 @@ bool AnubrekhanPositionAction::Execute(Event event)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
auto* boss_ai = dynamic_cast<Anubrekhan::boss_anubrekhan::boss_anubrekhanAI*>(boss->GetAI());
|
||||
if (!boss_ai)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
bool inPhase = botAI->HasAura("locust swarm", boss) || boss->GetCurrentSpell(CURRENT_GENERIC_SPELL);
|
||||
if (inPhase)
|
||||
{
|
||||
|
||||
@@ -228,8 +228,7 @@ bool AoeTrigger::IsActive()
|
||||
Unit* unit = botAI->GetUnit(guid);
|
||||
if (!unit || !unit->IsAlive())
|
||||
continue;
|
||||
|
||||
if (unit->GetExactDist2d(current_target) <= range)
|
||||
if (unit->GetDistance(current_target->GetPosition()) <= range)
|
||||
{
|
||||
attackers_count++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user