logic for moveToPoint message handler

This commit is contained in:
2023-09-10 14:08:54 -05:00
parent 545cb4cddf
commit 04147e11cc
2 changed files with 18 additions and 21 deletions
@@ -58,11 +58,6 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler {
break;
case Building:
target = BuildingManager.getBuilding(msg.getTargetID());
if(target == null)
return true;// early exit for no building pulled
Building targetBuilding = (Building) target;
if (!targetBuilding.isVulnerable() || targetBuilding.getRank() < 0)
return true;// cannot attack destroyed building or protected building
break;
default:
return true;//cannot attack anything other than the 3 above