Choose triggers order dialog - fixed that it can't remember ability name with card name in it

This commit is contained in:
Oleg Agafonov 2023-09-22 09:44:39 +04:00
parent 921015e6f1
commit 103f75975c
3 changed files with 37 additions and 1 deletions

View file

@ -2810,6 +2810,7 @@ public final class GamePanel extends javax.swing.JPanel {
if (!cardViewPopupMenu.getAbility().getRules().isEmpty()
&& !cardViewPopupMenu.getAbility().getRules().get(0).isEmpty()) {
abilityRuleText = cardViewPopupMenu.getAbility().getRules().get(0);
abilityRuleText = abilityRuleText.replace("{this}", cardViewPopupMenu.getName());
}
}
switch (e.getActionCommand()) {