mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Goblin Guide - Fixed a bug that the ability did not trigger if a planeswalker was attacked.
This commit is contained in:
parent
6199884b70
commit
0122937fbc
1 changed files with 1 additions and 2 deletions
|
@ -92,7 +92,7 @@ class GoblinGuideEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
UUID defenderId = game.getCombat().getDefenderId(source.getSourceId());
|
||||
UUID defenderId = game.getCombat().getDefendingPlayerId(source.getSourceId(), game);
|
||||
Player defender = game.getPlayer(defenderId);
|
||||
if (defender != null) {
|
||||
Cards cards = new CardsImpl();
|
||||
|
@ -101,7 +101,6 @@ class GoblinGuideEffect extends OneShotEffect {
|
|||
cards.add(card);
|
||||
defender.revealCards("Goblin Guide", cards, game);
|
||||
if (card.getCardType().contains(CardType.LAND)) {
|
||||
defender.getLibrary().removeFromTop(game);
|
||||
defender.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue