|
|
@ -33,12 +33,11 @@ public class MoveToPointHandler extends AbstractClientMsgHandler { |
|
|
|
if (pc == null) |
|
|
|
if (pc == null) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
AbstractWorldObject target; |
|
|
|
AbstractWorldObject target = pc.combatTarget; |
|
|
|
Enum.GameObjectType targetType; |
|
|
|
Enum.GameObjectType targetType; |
|
|
|
|
|
|
|
|
|
|
|
targetType = Enum.GameObjectType.values()[msg.getTargetType()]; |
|
|
|
if(target != null) { |
|
|
|
if(targetType != null) { |
|
|
|
switch (target.getObjectType()) { |
|
|
|
switch (targetType) { |
|
|
|
|
|
|
|
case Building: |
|
|
|
case Building: |
|
|
|
target = BuildingManager.getBuilding(msg.getTargetID()); |
|
|
|
target = BuildingManager.getBuilding(msg.getTargetID()); |
|
|
|
if (target == null) |
|
|
|
if (target == null) |
|
|
|