mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
for (Permanent creature : game.getBattlefield().getActivePermanents(new FilterCreaturePermanent(), source.getSourceId(), game)) {
|
||||
creature.moveToZone(Zone.LIBRARY, source.getSourceId(), game, false);
|
||||
for (Permanent creature : game.getBattlefield().getActivePermanents(new FilterCreaturePermanent(), controller.getId(), source.getSourceId(), game)) {
|
||||
controller.moveCardToLibraryWithInfo(creature, source.getSourceId(), game, Zone.BATTLEFIELD, false, true);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue