mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Fix AlternativeCostSourceAbility at the moment it doesn't apply it's filter early enough and so it has strange effects in certain edge cases. Specifically it allows Hypergenesis to be cast with Aluren and Kentaro.
This commit is contained in:
parent
c37b782b75
commit
0caaaa4205
1 changed files with 4 additions and 4 deletions
|
@ -131,10 +131,10 @@ public class AlternativeCostSourceAbility extends StaticAbility implements Alter
|
|||
|
||||
@Override
|
||||
public boolean isAvailable(Ability source, Game game) {
|
||||
if (condition != null) {
|
||||
return condition.apply(game, source);
|
||||
}
|
||||
return true;
|
||||
boolean conditionApplies = condition == null || condition.apply(game, source);
|
||||
boolean filterApplies = filter == null || filter.match(game.getCard(source.getSourceId()), game);
|
||||
|
||||
return conditionApplies && filterApplies;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue