* Not targeted selections - Fixed a but where not targeted selections did trigger the target events (e.g. Kira, Great Glass-Spinner counter ability was triggered by taping creatures for convoke ability).

This commit is contained in:
LevelX2 2014-07-14 14:19:18 +02:00
parent b368e3661c
commit aad8ad0871
3 changed files with 4 additions and 4 deletions

View file

@ -67,7 +67,7 @@ public class KiraGreatGlassSpinner extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// Creatures you control have "Whenever this creature becomes the target of a spell or ability for the first time in a turn, counter that spell or ability."
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(new KiraGreatGlassSpinnerAbility(), Duration.WhileOnBattlefield, new FilterCreaturePermanent())));
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(new KiraGreatGlassSpinnerAbility(), Duration.WhileOnBattlefield, new FilterCreaturePermanent("Creatures you control"))));
}
@ -86,7 +86,7 @@ public class KiraGreatGlassSpinner extends CardImpl {
class KiraGreatGlassSpinnerAbility extends TriggeredAbilityImpl {
protected Map<UUID,Integer> turnUsed = new HashMap<UUID,Integer>();
protected Map<UUID,Integer> turnUsed = new HashMap<>();
public KiraGreatGlassSpinnerAbility() {
super(Zone.BATTLEFIELD, new CounterTargetEffect(), false);

View file

@ -141,7 +141,7 @@ class FireballTargetCreatureOrPlayer extends TargetCreatureOrPlayer {
@Override
public List<TargetCreatureOrPlayer> getTargetOptions(Ability source, Game game) {
List<TargetCreatureOrPlayer> options = new ArrayList<TargetCreatureOrPlayer>();
List<TargetCreatureOrPlayer> options = new ArrayList<>();
int xVal = source.getManaCostsToPay().getX();
if (xVal < 1) {

View file

@ -219,7 +219,7 @@ public abstract class TargetImpl implements Target {
@Override
public void addTarget(UUID id, Ability source, Game game) {
addTarget(id, source, game, false);
addTarget(id, source, game, notTarget);
}
@Override