forked from External/mage
Battlefield Thaumaturge - fixed that it doesn't allow to cast spells without full available mana (#6698);
This commit is contained in:
parent
8e819ee614
commit
69d8fd1898
9 changed files with 144 additions and 32 deletions
|
|
@ -846,6 +846,18 @@ public abstract class AbilityImpl implements Ability {
|
|||
return new Targets();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Targets getAllSelectedTargets() {
|
||||
Targets res = new Targets();
|
||||
for (UUID modeId : this.getModes().getSelectedModes()) {
|
||||
Mode mode = this.getModes().get(modeId);
|
||||
if (mode != null) {
|
||||
res.addAll(mode.getTargets());
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getFirstTarget() {
|
||||
return getTargets().getFirstTarget();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue