- Fixed confirmTrigger sometimes revealing hidden information.

This commit is contained in:
Sloth
2013-07-01 16:43:41 +00:00
parent 86bf9f2a28
commit 4d9b270d3a

View File

@@ -389,8 +389,12 @@ public class WrappedAbility extends Ability implements ISpellAbility {
buildQuestion.append("[Attacker: " + tos.get("Attacker") + "]");
}
if (tos.containsKey("Card")) {
Card card = (Card) tos.get("Card");
if (card != null && (card.getController() == decider || decider.getGame().getZoneOf(card) == null
|| decider.getGame().getZoneOf(card).getZoneType().isKnown())) {
buildQuestion.append("[Triggering card: " + tos.get("Card") + "]");
}
}
if (!GuiDialog.confirm(regtrig.getHostCard(), buildQuestion.toString())) {
return false;
}