@ -12,6 +12,7 @@ import engine.objects.AbstractWorldObject;
@@ -12,6 +12,7 @@ import engine.objects.AbstractWorldObject;
import engine.objects.Mob ;
import engine.objects.NPC ;
import engine.objects.PlayerCharacter ;
import org.pmw.tinylog.Logger ;
/ *
* @Author :
@ -68,8 +69,10 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler {
@@ -68,8 +69,10 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler {
return true ; // cannot attack a null target
}
if ( playerCharacter . isCombat ( ) & & playerCharacter . getCombatTarget ( ) . equals ( target ) )
if ( playerCharacter . isCombat ( ) & & playerCharacter . getCombatTarget ( ) . equals ( target ) ) {
Logger . info ( "Bypass" ) ;
return true ;
}
//set sources target