mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 05:52:06 -08:00
* 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:
parent
b368e3661c
commit
aad8ad0871
3 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue