mirror of
https://github.com/correl/mage.git
synced 2024-12-28 03:00:10 +00:00
use player methods for putting cards into play
This commit is contained in:
parent
69b81eb28c
commit
d7e4f9d69a
1 changed files with 3 additions and 1 deletions
|
@ -52,6 +52,7 @@ import mage.game.Game;
|
||||||
import mage.game.events.GameEvent;
|
import mage.game.events.GameEvent;
|
||||||
import mage.game.events.ZoneChangeEvent;
|
import mage.game.events.ZoneChangeEvent;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
|
import mage.players.Player;
|
||||||
import mage.target.targetpointer.FixedTarget;
|
import mage.target.targetpointer.FixedTarget;
|
||||||
import mage.target.targetpointer.TargetPointer;
|
import mage.target.targetpointer.TargetPointer;
|
||||||
import mage.watchers.common.CreaturesDiedWatcher;
|
import mage.watchers.common.CreaturesDiedWatcher;
|
||||||
|
@ -151,7 +152,8 @@ class ScytheOfTheWretchedReanimateEffect extends OneShotEffect {
|
||||||
Card card = game.getCard(getTargetPointer().getFirst(game, source));
|
Card card = game.getCard(getTargetPointer().getFirst(game, source));
|
||||||
if(card != null) {
|
if(card != null) {
|
||||||
Zone currentZone = game.getState().getZone(card.getId());
|
Zone currentZone = game.getState().getZone(card.getId());
|
||||||
if (card.putOntoBattlefield(game, currentZone, source.getSourceId(), source.getControllerId())) {
|
Player player = game.getPlayer(source.getControllerId());
|
||||||
|
if(player != null && player.putOntoBattlefieldWithInfo(card, game, currentZone, source.getSourceId())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue