[GTC] small fix

This commit is contained in:
Plopman 2013-01-15 00:23:05 +01:00
parent 2d1f7cab11
commit eaf339a17f
3 changed files with 7 additions and 4 deletions

View file

@ -59,7 +59,7 @@ public class FiremaneAvenger extends CardImpl<FiremaneAvenger> {
// Battalion - Whenever Firemane Avenger and at least two other creatures attack, Firemane Avenger deals 3 damage to target creature or player and you gain 3 life.
Ability ability = new BattalionAbility(new DamageTargetEffect(3));
ability.addTarget(new TargetCreatureOrPlayer());
ability.addTarget(new TargetCreatureOrPlayer(true));
ability.addEffect(new GainLifeEffect(3));
this.addAbility(ability);
}

View file

@ -42,6 +42,7 @@ import mage.counters.CounterType;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.game.Game;
import mage.game.events.DamagedCreatureEvent;
import mage.game.events.DamagedEvent;
import mage.game.events.GameEvent;
import mage.game.permanent.Permanent;
import mage.target.common.TargetCreatureOrPlayer;
@ -98,7 +99,7 @@ class FiveAlarmFireTriggeredAbility extends TriggeredAbilityImpl<FiveAlarmFireTr
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getType() == GameEvent.EventType.DAMAGED_CREATURE || event.getType() == GameEvent.EventType.DAMAGED_PLANESWALKER || event.getType() == GameEvent.EventType.DAMAGED_PLAYER) {
Permanent permanent = game.getPermanent(event.getSourceId());
if(permanent != null && filter.match(permanent, sourceId, controllerId, game) && ((DamagedCreatureEvent) event).isCombatDamage()){
if(permanent != null && filter.match(permanent, sourceId, controllerId, game) && ((DamagedEvent) event).isCombatDamage()){
return true;
}
}

View file

@ -72,10 +72,12 @@ public class ZameckGuildmage extends CardImpl<ZameckGuildmage> {
// {G}{U}: This turn, each creature you control enters the battlefield with an additional +1/+1 counter on it.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new EntersBattlefieldEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance(1)), ruleText),new ManaCostsImpl("{G}{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new EntersBattlefieldEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance(1)), ruleText), new ManaCostsImpl("{G}{U}")));
// {G}{U}, Remove a +1/+1 counter from a creature you control: Draw a card.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardControllerEffect(1),new RemoveCounterCost(new TargetControlledCreaturePermanent(), CounterType.P1P1)));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardControllerEffect(1), new ManaCostsImpl("{G}{U}"));
ability.addCost(new RemoveCounterCost(new TargetControlledCreaturePermanent(), CounterType.P1P1));
this.addAbility(ability);
}
public ZameckGuildmage(final ZameckGuildmage card) {