- Optional triggers will now grant additional info when the human is prompted.

This commit is contained in:
Sloth
2013-06-18 15:08:20 +00:00
parent 2fa0e11ebb
commit 9c7efa9037

View File

@@ -378,8 +378,12 @@ public class WrappedAbility extends Ability implements ISpellAbility {
final StringBuilder buildQuestion = new StringBuilder("Use triggered ability of ");
buildQuestion.append(regtrig.getHostCard().toString()).append("?");
buildQuestion.append("\r\n(").append(triggerDesc).append(")\r\n");
if (sa.getTriggeringObjects().containsKey("Attacker")) {
buildQuestion.append("[Attacker: " + sa.getTriggeringObjects().get("Attacker") + "]");
HashMap<String, Object> tos = sa.getTriggeringObjects();
if (tos.containsKey("Attacker")) {
buildQuestion.append("[Attacker: " + tos.get("Attacker") + "]");
}
if (tos.containsKey("Card")) {
buildQuestion.append("[Triggering card: " + tos.get("Card") + "]");
}
if (!GuiDialog.confirm(regtrig.getHostCard(), buildQuestion.toString())) {
return false;