mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Hallowed Burial - Fixed exception bug of spell effect.
This commit is contained in:
parent
33918623aa
commit
c6409c3449
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue