mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
prompt support for Wandering Archaic
This commit is contained in:
@@ -82,7 +82,13 @@ public class CopySpellAbilityEffect extends SpellAbilityEffect {
|
|||||||
boolean isOptional = sa.hasParam("Optional");
|
boolean isOptional = sa.hasParam("Optional");
|
||||||
|
|
||||||
for (Player controller : controllers) {
|
for (Player controller : controllers) {
|
||||||
if (isOptional && !controller.getController().confirmAction(sa, null, Localizer.getInstance().getMessage("lblDoyouWantCopyTheSpell", CardTranslation.getTranslatedName(card.getName())))) {
|
String nameforprompt = CardTranslation.getTranslatedName(card.getName());
|
||||||
|
//hotfix for Wandering Archaic prompt
|
||||||
|
if (sa.hasParam("CopyTriggeredSpellName")) {
|
||||||
|
final Map<AbilityKey, Object> tobjs = sa.getTriggeringObjects();
|
||||||
|
nameforprompt = (tobjs.get(AbilityKey.Card)).toString();
|
||||||
|
}
|
||||||
|
if (isOptional && !controller.getController().confirmAction(sa, null, Localizer.getInstance().getMessage("lblDoyouWantCopyTheSpell", nameforprompt))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user