mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Distance check
This commit is contained in:
@@ -313,7 +313,6 @@ AiPlayerbot.AlmostFullHealth = 85
|
|||||||
AiPlayerbot.LowMana = 15
|
AiPlayerbot.LowMana = 15
|
||||||
AiPlayerbot.MediumMana = 40
|
AiPlayerbot.MediumMana = 40
|
||||||
|
|
||||||
|
|
||||||
# Enable healer bot save mana
|
# Enable healer bot save mana
|
||||||
# Default: 1 (enable)
|
# Default: 1 (enable)
|
||||||
AiPlayerbot.AutoSaveMana = 1
|
AiPlayerbot.AutoSaveMana = 1
|
||||||
|
|||||||
@@ -1517,7 +1517,7 @@ bool AvoidAoeAction::AvoidAuraWithDynamicObj()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
float radius = dynOwner->GetRadius();
|
float radius = dynOwner->GetRadius();
|
||||||
if (bot->GetExactDist(dynOwner) > radius) {
|
if (bot->GetDistance(dynOwner) > radius) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Unit* currentTarget = AI_VALUE(Unit*, "current target");
|
Unit* currentTarget = AI_VALUE(Unit*, "current target");
|
||||||
|
|||||||
Reference in New Issue
Block a user