mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Fixed confirmTrigger sometimes revealing hidden information.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user