mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Optional triggers that have the triggering object "Attacker" will now specify the attacker, when you have to chose.
This commit is contained in:
@@ -1005,7 +1005,10 @@ public class TriggerHandler {
|
||||
buildQuestion.append("\r\n(");
|
||||
buildQuestion.append(params.get("TriggerDescription").replace("CARDNAME",
|
||||
regtrig.getHostCard().getName()));
|
||||
buildQuestion.append(")");
|
||||
buildQuestion.append(")\r\n");
|
||||
if (sa[0].getTriggeringObjects().containsKey("Attacker")) {
|
||||
buildQuestion.append("[Attacker: " +sa[0].getTriggeringObjects().get("Attacker") + "]");
|
||||
}
|
||||
if (!GameActionUtil.showYesNoDialog(regtrig.getHostCard(), buildQuestion.toString())) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user