mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fixed UrzaTerrainValue calculation filters for previous Tronland subtype fix.
This commit is contained in:
parent
474d2b3536
commit
7fb3cf5eca
1 changed files with 6 additions and 3 deletions
|
@ -18,21 +18,24 @@ public class UrzaTerrainValue implements DynamicValue {
|
|||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
FilterControlledPermanent pp = new FilterControlledPermanent("Urza's Power Plant");
|
||||
pp.add(new SubtypePredicate("Urza's Power-Plant"));
|
||||
pp.add(new SubtypePredicate("Urza's"));
|
||||
pp.add(new SubtypePredicate("Power-Plant"));
|
||||
PermanentsOnBattlefieldCount ppP = new PermanentsOnBattlefieldCount(pp);
|
||||
if (ppP.calculate(game, sourceAbility, effect) < 1) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
FilterControlledPermanent to = new FilterControlledPermanent("Urza's Tower");
|
||||
to.add(new SubtypePredicate("Urza's Tower"));
|
||||
to.add(new SubtypePredicate("Urza's"));
|
||||
to.add(new SubtypePredicate("Tower"));
|
||||
PermanentsOnBattlefieldCount toP = new PermanentsOnBattlefieldCount(to);
|
||||
if (toP.calculate(game, sourceAbility, effect) < 1) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
FilterControlledPermanent mi = new FilterControlledPermanent("Urza's Mine");
|
||||
mi.add(new SubtypePredicate("Urza's Mine"));
|
||||
mi.add(new SubtypePredicate("Urza's"));
|
||||
mi.add(new SubtypePredicate("Mine"));
|
||||
PermanentsOnBattlefieldCount miP = new PermanentsOnBattlefieldCount(mi);
|
||||
if (miP.calculate(game, sourceAbility, effect) < 1) {
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue