mirror of
https://github.com/lov3b/Schack.git
synced 2025-12-14 08:10:08 +01:00
Lös problem där bönders attack inte registereas av kung
This commit is contained in:
@@ -228,7 +228,7 @@ public class Board extends JPanel implements MouseListener {
|
||||
continue;
|
||||
}
|
||||
// Lägg till alla attacker för respektive färg
|
||||
attacks.addAll(piece.validAttacks(pieces));
|
||||
attacks.addAll(piece.validAttacks(pieces, true));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user