|
|
@ -12,7 +12,6 @@ import engine.objects.AbstractWorldObject; |
|
|
|
import engine.objects.Building; |
|
|
|
import engine.objects.Building; |
|
|
|
import engine.objects.Mob; |
|
|
|
import engine.objects.Mob; |
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/* |
|
|
|
* @Author: |
|
|
|
* @Author: |
|
|
@ -46,6 +45,9 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
AbstractWorldObject target; |
|
|
|
AbstractWorldObject target; |
|
|
|
|
|
|
|
Enum.GameObjectType targetType; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
targetType = Enum.GameObjectType.values()[msg.getTargetType()]; |
|
|
|
|
|
|
|
|
|
|
|
if (msg.getTargetType() == Enum.GameObjectType.Mob.ordinal()) { |
|
|
|
if (msg.getTargetType() == Enum.GameObjectType.Mob.ordinal()) { |
|
|
|
target = Mob.getMob(msg.getTargetID()); |
|
|
|
target = Mob.getMob(msg.getTargetID()); |
|
|
|