mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Added Gauntlet of Power.
This commit is contained in:
@@ -17,7 +17,10 @@
|
||||
*/
|
||||
package forge.card.trigger;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import forge.Card;
|
||||
import forge.card.MagicColor;
|
||||
import forge.card.spellability.SpellAbility;
|
||||
|
||||
/**
|
||||
@@ -58,6 +61,20 @@ public class TriggerTapsForMana extends Trigger {
|
||||
}
|
||||
}
|
||||
|
||||
if (this.mapParams.containsKey("Produced")) {
|
||||
Object prod = runParams2.get("Produced");
|
||||
if (prod == null || !(prod instanceof String)) {
|
||||
return false;
|
||||
}
|
||||
String produced = (String) prod;
|
||||
if ("ChosenColor".equals(mapParams.get("Produced"))) {
|
||||
List<String> colors = this.getHostCard().getChosenColor();
|
||||
if (colors.isEmpty() || !produced.contains(MagicColor.toShortString(colors.get(0)))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user