mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Fixed a NPE in SpellAbility_Restriction.
This commit is contained in:
@@ -193,12 +193,12 @@ public class SpellAbility_Restriction {
|
||||
if (sIsPresent != null){
|
||||
CardList list = AllZoneUtil.getCardsInPlay();
|
||||
|
||||
list = list.getValidCards(sIsPresent.split(","), sa.getActivatingPlayer(), sa.getSourceCard());
|
||||
list = list.getValidCards(sIsPresent.split(","), activator, c);
|
||||
|
||||
int right = 1;
|
||||
String rightString = presentCompare.substring(2);
|
||||
if(rightString.equals("X")) {
|
||||
right = CardFactoryUtil.xCount(sa.getSourceCard(), sa.getSourceCard().getSVar("X"));
|
||||
right = CardFactoryUtil.xCount(c, c.getSVar("X"));
|
||||
}
|
||||
else {
|
||||
right = Integer.parseInt(presentCompare.substring(2));
|
||||
|
||||
Reference in New Issue
Block a user