* Added 28 cards from Vintage Masters.

This commit is contained in:
LevelX2 2014-06-27 13:41:28 +02:00
parent b0a822184b
commit d84076ba40
70 changed files with 3926 additions and 63 deletions

View file

@ -68,14 +68,19 @@ public class TargetCardInHand extends TargetCard {
}
@Override
public boolean canTarget(UUID id, Ability source, Game game) {
Card card = game.getPlayer(source.getControllerId()).getHand().get(id, game);
public boolean canTarget(UUID id, UUID playerId, Ability source, Game game) {
Card card = game.getPlayer(playerId).getHand().get(id, game);
if (card != null) {
return filter.match(card, source.getControllerId(), game);
return filter.match(card, source.getSourceId(), playerId, game);
}
return false;
}
@Override
public boolean canTarget(UUID id, Ability source, Game game) {
return this.canTarget(id, source.getControllerId(), source, game);
}
@Override
public Set<UUID> possibleTargets(UUID sourceId, UUID playerId, Game game) {
Set<UUID> possibleTargets = new HashSet<>();