|
|
@ -67,6 +67,10 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler { |
|
|
|
playerCharacter.setCombatTarget(null); |
|
|
|
playerCharacter.setCombatTarget(null); |
|
|
|
return true; // cannot attack a null target
|
|
|
|
return true; // cannot attack a null target
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (playerCharacter.getCombatTarget().equals(target)) |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
//set sources target
|
|
|
|
//set sources target
|
|
|
|
|
|
|
|
|
|
|
|
playerCharacter.setCombatTarget(target); |
|
|
|
playerCharacter.setCombatTarget(target); |
|
|
|