mirror of
https://github.com/correl/mage.git
synced 2025-01-13 03:00:10 +00:00
Fixed a bug in the Evoke ability.
This commit is contained in:
parent
e22400d0ae
commit
f158c40d1e
2 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue