mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Optional triggers will now grant additional info when the human is prompted.
This commit is contained in:
@@ -378,8 +378,12 @@ public class WrappedAbility extends Ability implements ISpellAbility {
|
|||||||
final StringBuilder buildQuestion = new StringBuilder("Use triggered ability of ");
|
final StringBuilder buildQuestion = new StringBuilder("Use triggered ability of ");
|
||||||
buildQuestion.append(regtrig.getHostCard().toString()).append("?");
|
buildQuestion.append(regtrig.getHostCard().toString()).append("?");
|
||||||
buildQuestion.append("\r\n(").append(triggerDesc).append(")\r\n");
|
buildQuestion.append("\r\n(").append(triggerDesc).append(")\r\n");
|
||||||
if (sa.getTriggeringObjects().containsKey("Attacker")) {
|
HashMap<String, Object> tos = sa.getTriggeringObjects();
|
||||||
buildQuestion.append("[Attacker: " + sa.getTriggeringObjects().get("Attacker") + "]");
|
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())) {
|
if (!GuiDialog.confirm(regtrig.getHostCard(), buildQuestion.toString())) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user