mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Possibility Storm - Fixed a bug that it was not correctly checked if the player was able to cast modal spells.
This commit is contained in:
parent
4aebcd2399
commit
a33ed68c74
4 changed files with 91 additions and 28 deletions
|
|
@ -872,9 +872,13 @@ public abstract class AbilityImpl implements Ability {
|
|||
|
||||
@Override
|
||||
public boolean canChooseTarget(Game game) {
|
||||
int found = 0;
|
||||
for (Mode mode : modes.values()) {
|
||||
if (mode.getTargets().canChoose(sourceId, controllerId, game)) {
|
||||
return true;
|
||||
found++;
|
||||
if (found >= getModes().getMinModes()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue