mirror of
https://github.com/magefree/mage.git
synced 2026-01-18 09:19:56 -08:00
fixed issue 242 - check all modes for targets
This commit is contained in:
parent
ac70150512
commit
6d4c3aa8d9
7 changed files with 26 additions and 6 deletions
|
|
@ -414,6 +414,15 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
|||
public Modes getModes() {
|
||||
return modes;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canChooseTarget(Game game) {
|
||||
for (Mode mode: modes.values()) {
|
||||
if (mode.getTargets().canChoose(sourceId, controllerId, game))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue