Fixed a bug in the Evoke ability.

This commit is contained in:
LevelX2 2013-05-25 18:00:29 +02:00
parent e22400d0ae
commit f158c40d1e
2 changed files with 3 additions and 2 deletions

View file

@ -44,8 +44,9 @@ public abstract class StaticAbility<T extends StaticAbility<T>> extends AbilityI
public StaticAbility(Zone zone, Effect effect) {
super(AbilityType.STATIC, zone);
if (effect != null)
if (effect != null) {
this.addEffect(effect);
}
}
public StaticAbility(StaticAbility ability) {

View file

@ -68,13 +68,13 @@ public class EvokeAbility extends StaticAbility<EvokeAbility> implements Alterna
this.addEvokeCost(manaString);
Ability ability = new ConditionalTriggeredAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceEffect()), EvokedCondition.getInstance(), "Sacrifice {this} when it enters the battlefield and was evoked.");
ability.setRuleVisible(false);
ability.setRuleVisible(false);
card.addAbility(ability);
}
public EvokeAbility(final EvokeAbility ability) {
super(ability);
this.evokeCosts.addAll(ability.evokeCosts);
}
@Override