- Optional triggers that have the triggering object "Attacker" will now specify the attacker, when you have to chose.

This commit is contained in:
Sloth
2011-11-30 13:37:31 +00:00
parent 18eb8832a2
commit bcd319fb44

View File

@@ -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;
}