*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:
jendave
2011-08-06 08:35:41 +00:00
parent 2ecea7577d
commit f14d77c341

View File

@@ -479,6 +479,10 @@ public class CardFactory implements NewConstants {
} }
else if(RestrictionID.equals("Targets")) else if(RestrictionID.equals("Targets"))
{ {
if(sa.getTargetCard() == null)
{
return false;
}
for(int p=0;p<SplitParameters.length;p++) for(int p=0;p<SplitParameters.length;p++)
{ {
System.out.println("Parameter: " + SplitParameters[p]); System.out.println("Parameter: " + SplitParameters[p]);