mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Add Spy Network. Add new card names to CHANGES.txt.
This commit is contained in:
@@ -3,6 +3,7 @@ package forge.game.ability.effects;
|
||||
import forge.game.Game;
|
||||
import forge.game.ability.SpellAbilityEffect;
|
||||
import forge.game.card.Card;
|
||||
import forge.game.card.CardCollection;
|
||||
import forge.game.player.Player;
|
||||
import forge.game.spellability.SpellAbility;
|
||||
import forge.game.spellability.TargetRestrictions;
|
||||
@@ -17,11 +18,14 @@ public class LookAtEffect extends SpellAbilityEffect {
|
||||
final Player activator = sa.getActivatingPlayer();
|
||||
final TargetRestrictions tgt = sa.getTargetRestrictions();
|
||||
|
||||
final CardCollection targets = new CardCollection();
|
||||
for (final Card tgtCard : getTargetCards(sa)) {
|
||||
if (tgt == null || tgtCard.canBeTargetedBy(sa)) {
|
||||
game.getAction().revealTo(tgtCard, activator);
|
||||
targets.add(tgtCard);
|
||||
}
|
||||
}
|
||||
|
||||
game.getAction().revealTo(targets, activator);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user