fresh start

This commit is contained in:
2023-09-10 15:51:25 -05:00
parent 13644fd308
commit ca6e079053
2 changed files with 3 additions and 34 deletions
@@ -41,7 +41,7 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler {
if (playerCharacter == null)
return true;
AbstractWorldObject target;
AbstractWorldObject target = null;
Enum.GameObjectType targetType;
targetType = Enum.GameObjectType.values()[msg.getTargetType()];
@@ -56,11 +56,6 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler {
case Building:
target = BuildingManager.getBuilding(msg.getTargetID());
break;
case NPC:
target = NPC.getNPC(msg.getTargetID());
break;
default:
return true;//cannot attack anything other than the 3 above
}
if(target == null) {