This commit is contained in:
Paul Gross
2020-04-24 10:09:30 +02:00
parent d368228aab
commit 51b6e80e45
14 changed files with 386 additions and 72 deletions

View File

@ -18,7 +18,12 @@ public abstract class CarteCondition extends CarteEffet{
*/
@Override
public void utiliser(Joueur j) {
if(this.condition.isTrue(j)) {
if(this.condition != null) {
if(this.condition.isTrue(j)) {
super.utiliser(j);
}
}else {
super.utiliser(j);
}
}

View File

@ -55,6 +55,10 @@ public class CarteLieu extends CarteEffet{
return this.coordinates;
}
public void ajouterJoueur(Joueur joueur) {
this.listeJoueurs.add(joueur);
}