mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
refactor: improved ability's modes code (related to #11333)
This commit is contained in:
parent
fec5de873b
commit
b7ce9c80f0
32 changed files with 162 additions and 137 deletions
|
|
@ -2409,7 +2409,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
Mode selectedMode = modes.get(selectedModeId);
|
||||
if (mode.getId().equals(selectedMode.getId())) {
|
||||
// mode selected
|
||||
if (modes.isEachModeMoreThanOnce()) {
|
||||
if (modes.isMayChooseSameModeMoreThanOnce()) {
|
||||
// can select again
|
||||
} else {
|
||||
// hide mode from dialog
|
||||
|
|
@ -2423,7 +2423,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
if (obj != null) {
|
||||
modeText = modeText.replace("{this}", obj.getName());
|
||||
}
|
||||
if (modes.isEachModeMoreThanOnce()) {
|
||||
if (modes.isMayChooseSameModeMoreThanOnce()) {
|
||||
if (timesSelected > 0) {
|
||||
modeText = "(selected " + timesSelected + "x) " + modeText;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue