|
|
@ -12,7 +12,6 @@ import engine.objects.AbstractWorldObject; |
|
|
|
import engine.objects.Mob; |
|
|
|
import engine.objects.Mob; |
|
|
|
import engine.objects.NPC; |
|
|
|
import engine.objects.NPC; |
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/* |
|
|
|
* @Author: |
|
|
|
* @Author: |
|
|
@ -69,11 +68,11 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler { |
|
|
|
return true; // cannot attack a null target
|
|
|
|
return true; // cannot attack a null target
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// No point in setting combat target to someone you are already fighting
|
|
|
|
|
|
|
|
|
|
|
|
if (playerCharacter.isCombat() && playerCharacter.getCombatTarget() != null && |
|
|
|
if (playerCharacter.isCombat() && playerCharacter.getCombatTarget() != null && |
|
|
|
playerCharacter.getCombatTarget().equals(target)) { |
|
|
|
playerCharacter.getCombatTarget().equals(target)) |
|
|
|
Logger.info("Bypass"); |
|
|
|
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//set sources target
|
|
|
|
//set sources target
|
|
|
|
|
|
|
|
|
|
|
|