- Experimental: check LKI for the ChangesZone trigger of Dross Scorpion (fixes interaction with cards equipped with cards providing the Artifact type, e.g. Firemaw Kavu + Silversilk Armor). Should this be the default behavior?

This commit is contained in:
Agetian
2017-08-16 05:08:56 +00:00
parent d4392635bf
commit 027ecf29ae
2 changed files with 12 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
*/
package forge.game.trigger;
import forge.game.Game;
import forge.game.ability.AbilityUtils;
import forge.game.card.Card;
import forge.game.card.CardFactoryUtil;
@@ -104,6 +105,16 @@ public class TriggerChangesZone extends Trigger {
}
}
if (this.mapParams.containsKey("ValidCardLKI")) {
final Game game = this.getHostCard().getGame();
final Card movedLKI = game.getChangeZoneLKIInfo((Card) runParams2.get("Card"));
if (!movedLKI.isValid(this.mapParams.get("ValidCardLKI").split(","), this.getHostCard().getController(),
this.getHostCard(), null)) {
return false;
}
}
// Check number of lands ETB this turn on triggered card's controller
if (mapParams.containsKey("CheckOnTriggeredCard")) {
final String[] condition = mapParams.get("CheckOnTriggeredCard").split(" ", 2);