mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
- Fixed #8515
This commit is contained in:
parent
790eea5aa1
commit
ebb9d7c22f
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue