mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
fix Issue 135
This commit is contained in:
parent
bdd6a3b988
commit
e7510eb209
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,7 @@ import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.abilities.mana.GreenManaAbility;
|
import mage.abilities.mana.GreenManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.counters.common.PlusOneCounter;
|
import mage.counters.common.PlusOneCounter;
|
||||||
|
import mage.filter.Filter;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
|
@ -95,6 +96,7 @@ class OranRiefTheVastwoodEffect extends OneShotEffect<OranRiefTheVastwoodEffect>
|
||||||
FilterPermanent filter = new FilterPermanent();
|
FilterPermanent filter = new FilterPermanent();
|
||||||
filter.getCardType().add(CardType.CREATURE);
|
filter.getCardType().add(CardType.CREATURE);
|
||||||
filter.getColor().setGreen(true);
|
filter.getColor().setGreen(true);
|
||||||
|
filter.setScopeColor(Filter.ComparisonScope.Any);
|
||||||
filter.setUseColor(true);
|
filter.setUseColor(true);
|
||||||
for (Permanent permanent: game.getBattlefield().getActivePermanents(filter, source.getControllerId(), game)) {
|
for (Permanent permanent: game.getBattlefield().getActivePermanents(filter, source.getControllerId(), game)) {
|
||||||
if (permanent.getTurnsOnBattlefield() == 0) {
|
if (permanent.getTurnsOnBattlefield() == 0) {
|
||||||
|
|
Loading…
Reference in a new issue