mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- TapsForMana trigger will now actually check for tapping.
This commit is contained in:
@@ -53,6 +53,12 @@ public class TriggerTapsForMana extends Trigger {
|
|||||||
@Override
|
@Override
|
||||||
public final boolean performTest(final java.util.Map<String, Object> runParams2) {
|
public final boolean performTest(final java.util.Map<String, Object> runParams2) {
|
||||||
final Card tapper = (Card) runParams2.get("Card");
|
final Card tapper = (Card) runParams2.get("Card");
|
||||||
|
final SpellAbility manaAbility = (SpellAbility) runParams2.get("AbilityMana");
|
||||||
|
|
||||||
|
//Check for tapping
|
||||||
|
if (manaAbility == null || manaAbility.getPayCosts() == null || !manaAbility.getPayCosts().hasTapCost()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.mapParams.containsKey("ValidCard")) {
|
if (this.mapParams.containsKey("ValidCard")) {
|
||||||
if (!tapper.isValid(this.mapParams.get("ValidCard").split(","), this.getHostCard().getController(),
|
if (!tapper.isValid(this.mapParams.get("ValidCard").split(","), this.getHostCard().getController(),
|
||||||
|
|||||||
Reference in New Issue
Block a user