Made Desolation account for token lands

This commit is contained in:
L_J 2018-05-21 12:50:40 +00:00 committed by GitHub
parent 0ec39af940
commit eb22d60b5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}