forked from MagicBane/Server
combat target usage
This commit is contained in:
@@ -33,12 +33,11 @@ public class MoveToPointHandler extends AbstractClientMsgHandler {
|
||||
if (pc == null)
|
||||
return false;
|
||||
|
||||
AbstractWorldObject target;
|
||||
AbstractWorldObject target = pc.combatTarget;
|
||||
Enum.GameObjectType targetType;
|
||||
|
||||
targetType = Enum.GameObjectType.values()[msg.getTargetType()];
|
||||
if(targetType != null) {
|
||||
switch (targetType) {
|
||||
if(target != null) {
|
||||
switch (target.getObjectType()) {
|
||||
case Building:
|
||||
target = BuildingManager.getBuilding(msg.getTargetID());
|
||||
if (target == null)
|
||||
|
||||
Reference in New Issue
Block a user