mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Merge pull request #2955 from kevlahnota/newmaster2
commented out check for API fpr "Any"
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user