mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
*Fixed spCounter cards with a Targets() parameter throwing null pointer exception when the spell to counter doesn't actually target anything.
This commit is contained in:
@@ -478,7 +478,11 @@ public class CardFactory implements NewConstants {
|
||||
}
|
||||
}
|
||||
else if(RestrictionID.equals("Targets"))
|
||||
{
|
||||
{
|
||||
if(sa.getTargetCard() == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
for(int p=0;p<SplitParameters.length;p++)
|
||||
{
|
||||
System.out.println("Parameter: " + SplitParameters[p]);
|
||||
|
||||
Reference in New Issue
Block a user