Merge branch 'development2' of https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-01 into development2
This commit is contained in:
		@@ -56,11 +56,10 @@ else if (40 > targetIdx && (!piece.getState().equals(PieceState.HOME) || !piece.
 | 
			
		||||
                if (!tartgetNode.isOccupied(activeColor)) {
 | 
			
		||||
                    //checks if the targetNode is not occupied or the occupant ha no shield
 | 
			
		||||
                    if(tartgetNode.isOccupied()) {
 | 
			
		||||
                        return false;
 | 
			
		||||
                    }
 | 
			
		||||
                    if(tartgetNode.getOccupant().getShield().equals(ShieldState.ACTIVE)) {
 | 
			
		||||
                        System.out.println("Server: targetNode.getOccupant().getShield().equals(ShieldState.ACTIVE"+tartgetNode.getOccupant().getShield().equals(ShieldState.ACTIVE));
 | 
			
		||||
                        return false;
 | 
			
		||||
                        if(tartgetNode.getOccupant().getShield().equals(ShieldState.ACTIVE)) {
 | 
			
		||||
                            System.out.println("Server: targetNode.getOccupant().getShield().equals(ShieldState.ACTIVE" + tartgetNode.getOccupant().getShield().equals(ShieldState.ACTIVE));
 | 
			
		||||
                            return false;
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                    return true;
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
@@ -52,7 +52,7 @@ public void received(SelectedPiecesMessage msg, int from) {
 | 
			
		||||
        if (msg.getPieces().size() == 1 && this.powerCardAutomaton.getVisitor().getShieldPieces().contains(msg.getPieces().get(0))) {
 | 
			
		||||
            this.powerCardAutomaton.addSelectedPiece(msg.getPieces().get(0));
 | 
			
		||||
            for (Piece piece : this.logic.getGame().getPlayerByColor(this.logic.getGame().getActiveColor()).getPieces()) {
 | 
			
		||||
                if (piece == msg.getPieces().get(0)) {
 | 
			
		||||
                if (piece.getUuid().equals(msg.getPieces().get(0).getUuid())) {
 | 
			
		||||
                    piece.setShield(ShieldState.ACTIVE);
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user