mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
[CLB] Undercity Dungeon - fixed game error (NPE fix)
This commit is contained in:
parent
491fc560e8
commit
c061c7f436
1 changed files with 5 additions and 3 deletions
|
@ -159,9 +159,11 @@ class ThroneOfTheDeadThreeEffect extends OneShotEffect {
|
|||
if (card != null) {
|
||||
player.moveCards(card, Zone.BATTLEFIELD, source, game);
|
||||
Permanent permanent = game.getPermanent(card.getId());
|
||||
permanent.addCounters(CounterType.P1P1.createInstance(3), source, game);
|
||||
game.addEffect(new GainAbilityTargetEffect(HexproofAbility.getInstance(), Duration.UntilYourNextTurn)
|
||||
.setTargetPointer(new FixedTarget(permanent, game)), source);
|
||||
if (permanent != null) {
|
||||
permanent.addCounters(CounterType.P1P1.createInstance(3), source, game);
|
||||
game.addEffect(new GainAbilityTargetEffect(HexproofAbility.getInstance(), Duration.UntilYourNextTurn)
|
||||
.setTargetPointer(new FixedTarget(permanent, game)), source);
|
||||
}
|
||||
}
|
||||
player.shuffleLibrary(source, game);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue