mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed confirmTrigger sometimes revealing hidden information.
This commit is contained in:
@@ -389,7 +389,11 @@ public class WrappedAbility extends Ability implements ISpellAbility {
|
|||||||
buildQuestion.append("[Attacker: " + tos.get("Attacker") + "]");
|
buildQuestion.append("[Attacker: " + tos.get("Attacker") + "]");
|
||||||
}
|
}
|
||||||
if (tos.containsKey("Card")) {
|
if (tos.containsKey("Card")) {
|
||||||
buildQuestion.append("[Triggering card: " + tos.get("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())) {
|
if (!GuiDialog.confirm(regtrig.getHostCard(), buildQuestion.toString())) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user