Merge pull request #2955 from kevlahnota/newmaster2

commented out check for API fpr "Any"
This commit is contained in:
Anthony Calosa
2023-04-18 16:22:18 +08:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -5344,11 +5344,12 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
if (!(isCreature() || isPlaneswalker() || isBattle())) {
return false;
}
if (spellAbility == null)
//todo further check for Effect API and other replacement Effect
/*if (spellAbility == null)
return false;
ApiType apiType = ((SpellAbility) spellAbility).getApi();
if (!(ApiType.DealDamage.equals(apiType) || ApiType.PreventDamage.equals(apiType)))
return false;
return false;*/
} else if (!getType().hasStringType(incR[0])) {
return testFailed; // Check for wrong type
}

View File

@@ -2125,11 +2125,12 @@ public class Player extends GameEntity implements Comparable<Player> {
return false;
}
} else if (incR[0].equals("Any")) {
if (spellAbility == null)
//todo further check for Effect API and other replacement Effect
/*if (spellAbility == null)
return false;
ApiType apiType = ((SpellAbility) spellAbility).getApi();
if (!(ApiType.DealDamage.equals(apiType) || ApiType.PreventDamage.equals(apiType)))
return false;
return false;*/
} else if (!incR[0].equals("Player")) {
return false;
}