* Hallowed Burial - Fixed exception bug of spell effect.

This commit is contained in:
LevelX2 2014-07-30 11:16:58 +02:00
parent 33918623aa
commit c6409c3449

View file

@ -87,8 +87,8 @@ class HallowedBurialEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId()); Player controller = game.getPlayer(source.getControllerId());
if (controller != null) { if (controller != null) {
for (Permanent creature : game.getBattlefield().getActivePermanents(new FilterCreaturePermanent(), source.getSourceId(), game)) { for (Permanent creature : game.getBattlefield().getActivePermanents(new FilterCreaturePermanent(), controller.getId(), source.getSourceId(), game)) {
creature.moveToZone(Zone.LIBRARY, source.getSourceId(), game, false); controller.moveCardToLibraryWithInfo(creature, source.getSourceId(), game, Zone.BATTLEFIELD, false, true);
} }
return true; return true;
} }