* Contamination - Fixed that it also replaced mana from non land sources.

This commit is contained in:
LevelX2 2015-02-14 11:46:03 +01:00
parent 1342af5349
commit 130da71d45

View file

@ -28,6 +28,7 @@
package mage.sets.urzassaga; package mage.sets.urzassaga;
import java.util.UUID; import java.util.UUID;
import mage.MageObject;
import mage.Mana; import mage.Mana;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility; import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
@ -113,6 +114,7 @@ class ContaminationReplacementEffect extends ReplacementEffectImpl {
@Override @Override
public boolean applies(GameEvent event, Ability source, Game game) { public boolean applies(GameEvent event, Ability source, Game game) {
return true; MageObject mageObject = source.getSourceObject(game);
return mageObject != null && mageObject.getCardType().contains(CardType.LAND);
} }
} }