From ac1cc47a56a4e16231f8408749d139a09b8f4f4a Mon Sep 17 00:00:00 2001 From: mathusummut Date: Wed, 6 Feb 2019 04:10:14 +0100 Subject: [PATCH] Now you can micro-manage using right-click and middle-click --- source/game/type_instances/unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/game/type_instances/unit.cpp b/source/game/type_instances/unit.cpp index 22d5205a3..e4efec4a3 100644 --- a/source/game/type_instances/unit.cpp +++ b/source/game/type_instances/unit.cpp @@ -2746,7 +2746,7 @@ namespace Game { // or when the unit is selected and right clicked to a position. if (commandType == NULL) { CommandClass command = ccMove; //default command - if (!isMove && defaultActionAttack) { + if (!isMove && (preferAttack || defaultActionAttack)) { if (getType()->hasSkillClass(scAttack)) { if (targetUnit == NULL || this->getTeam() != targetUnit->getTeam()) { if (preferAttack || (getCurrSkill()->getClass() != scAttack && !(game->getWorld()->getUnitUpdater()->hasEnemyUnitsOnSight(this, false))))