mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-16 18:30:27 +00:00
miscs
This commit is contained in:
@@ -36,9 +36,9 @@ bool AttackAnythingAction::isUseful()
|
||||
if (context->GetValue<TravelTarget*>("travel target")->Get()->isTraveling() &&
|
||||
ChooseRpgTargetAction::isFollowValid(bot, *context->GetValue<TravelTarget*>("travel target")->Get()->getPosition())) //Bot is traveling
|
||||
return false;
|
||||
if (bot->IsInCombat()) {
|
||||
return false;
|
||||
}
|
||||
// if (bot->IsInCombat()) {
|
||||
// return false;
|
||||
// }
|
||||
Unit* target = GetTarget();
|
||||
|
||||
if (!target)
|
||||
|
||||
@@ -755,7 +755,7 @@ bool MovementAction::IsMovingAllowed()
|
||||
bot->HasUnitState(UNIT_STATE_LOST_CONTROL))
|
||||
return false;
|
||||
|
||||
if (bot->GetMotionMaster()->GetMotionSlot(MOTION_SLOT_CONTROLLED)) {
|
||||
if (bot->GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_CONTROLLED) != NULL_MOTION_TYPE) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user