Made Desolation account for token lands
@@ -33,7 +33,6 @@ import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
import mage.abilities.effects.OneShotEffect;
-import mage.cards.Card;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
@@ -149,8 +148,8 @@ class DesolationWatcher extends Watcher {
if (event.getType() == GameEvent.EventType.TAPPED_FOR_MANA) {
UUID playerId = event.getPlayerId();
if (playerId != null) {
- Card card = game.getCard(event.getSourceId());
- if (card != null && card.isLand()) {
+ Permanent permanent = game.getPermanentOrLKIBattlefield(event.getSourceId());
+ if (permanent != null && permanent.isLand()) {
tappedForManaThisTurnPlayers.add(playerId);
}
}
