Update Tombfire.java

This commit is contained in:
cbt33 2013-10-15 21:29:18 -04:00
parent 02a3c774cc
commit 6be2b907c7

View file

@ -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() {