mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed possible NPE in performTest checking "TargetsValid".
This commit is contained in:
@@ -97,7 +97,10 @@ public class TriggerSpellAbilityCast extends Trigger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.getMapParams().containsKey("TargetsValid")) {
|
if (this.getMapParams().containsKey("TargetsValid")) {
|
||||||
final SpellAbility sa = si.getSpellAbility();
|
SpellAbility sa = spellAbility;
|
||||||
|
if (si != null) {
|
||||||
|
sa = si.getSpellAbility();
|
||||||
|
}
|
||||||
if (sa.getTarget() == null) {
|
if (sa.getTarget() == null) {
|
||||||
if (sa.getTargetCard() == null) {
|
if (sa.getTargetCard() == null) {
|
||||||
if (sa.getTargetPlayer() == null) {
|
if (sa.getTargetPlayer() == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user