This commit is contained in:
Jeff Wadsworth 2022-01-06 15:39:04 -06:00
parent 790eea5aa1
commit ebb9d7c22f

View file

@ -72,10 +72,12 @@ class NecromanticSelectionEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
MageObject sourceObject = game.getObject(source.getSourceId());
if (sourceObject != null && controller != null) {
if (sourceObject != null
&& controller != null) {
Cards cards = new CardsImpl();
for (Permanent permanent : game.getBattlefield().getActivePermanents(StaticFilters.FILTER_PERMANENT_CREATURE, controller.getId(), source.getSourceId(), game)) {
permanent.destroy(source, game, false);
game.checkStateAndTriggered(); // Meren of the Clan Nel Toth bug #8515
if (game.getState().getZone(permanent.getId()) == Zone.GRAVEYARD) {
cards.add(permanent);
}