mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Update Tombfire.java
This commit is contained in:
parent
02a3c774cc
commit
6be2b907c7
1 changed files with 11 additions and 7 deletions
|
@ -72,7 +72,7 @@ public class Tombfire extends CardImpl<Tombfire> {
|
|||
|
||||
class TombfireEffect extends OneShotEffect<TombfireEffect> {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("flashback");
|
||||
private static final FilterCard filter = new FilterCard("flashback");
|
||||
|
||||
static{
|
||||
filter.add(new AbilityPredicate(FlashbackAbility.class));
|
||||
|
@ -89,12 +89,16 @@ class TombfireEffect extends OneShotEffect<TombfireEffect> {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player targetPlayer = game.getPlayer(source.getFirstTarget());
|
||||
Player targetPlayer = game.getPlayer(targetPointer.getFirst(game, source));
|
||||
if (targetPlayer != null) {
|
||||
for (Card card: targetPlayer.getGraveyard().getCards(filter, game)) {
|
||||
card.moveToExile(null, "", source.getId(), game);
|
||||
card.moveToExile(null, "", source.getSourceId(), game);
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public TombfireEffect copy() {
|
||||
|
|
Loading…
Reference in a new issue