forked from External/mage
couple of sonar fixes
This commit is contained in:
parent
63fc53e0f0
commit
7c2f55eda0
28 changed files with 53 additions and 134 deletions
|
|
@ -42,7 +42,7 @@ public class TargetActivatedOrTriggeredAbility extends TargetObject {
|
|||
}
|
||||
|
||||
StackObject stackObject = game.getStack().getStackObject(id);
|
||||
return isActivatedOrTriggeredAbility(stackObject) && filter.match(stackObject, source.getSourceId(), source.getControllerId(), game);
|
||||
return isActivatedOrTriggeredAbility(stackObject) && source != null && filter.match(stackObject, source.getSourceId(), source.getControllerId(), game);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue