SacrificeAllEffect: check timestamp for LKI objects

This commit is contained in:
Hans Mackowiak
2021-03-13 10:39:59 +01:00
parent a2e27f40c9
commit 174836a57f
43 changed files with 146 additions and 150 deletions

View File

@@ -86,7 +86,7 @@ public class HumanCostDecision extends CostDecisionMakerBase {
if (discardType.equals("Hand")) {
if (hand.size() > 1 && ability.getActivatingPlayer() != null) {
hand = ability.getActivatingPlayer().getController().orderMoveToZoneList(hand, ZoneType.Graveyard);
hand = ability.getActivatingPlayer().getController().orderMoveToZoneList(hand, ZoneType.Graveyard, ability);
}
return PaymentDecision.card(hand);
}
@@ -105,7 +105,7 @@ public class HumanCostDecision extends CostDecisionMakerBase {
CardCollectionView randomSubset = Aggregates.random(hand, c, new CardCollection());
if (randomSubset.size() > 1 && ability.getActivatingPlayer() != null) {
randomSubset = ability.getActivatingPlayer().getController().orderMoveToZoneList(randomSubset, ZoneType.Graveyard);
randomSubset = ability.getActivatingPlayer().getController().orderMoveToZoneList(randomSubset, ZoneType.Graveyard, ability);
}
return PaymentDecision.card(randomSubset);
}