hp des cartes

This commit is contained in:
marc barbier
2021-01-06 17:37:49 +01:00
parent a8fde43596
commit e37bc7f1b3
6 changed files with 13 additions and 1 deletions
+8
View File
@@ -374,6 +374,14 @@ public class Joueur {
// appelle les effet de quand la carte est détruite
// NOTE : non implémenter dans les cartes individuelles par manque de temps
attackedCard.onCardDestroyed();
}else {
adversaire.getComs().send(Command.SET_CARD_HP);
adversaire.getComs().send(carteCible);
adversaire.getComs().send(attackedCard.getHealth());
this.getComs().send(Command.SET_ADV_CARD_HP);
this.getComs().send(carteCible);
this.getComs().send(attackedCard.getHealth());
}
}