mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[IKO] Jubilant Skybonder - fixed text;
This commit is contained in:
parent
0aced5669f
commit
dfdc1e5e06
2 changed files with 15 additions and 3 deletions
|
@ -49,7 +49,7 @@ public final class JubilantSkybonder extends CardImpl {
|
|||
ContinuousEffect effect = new GainAbilityAllEffect(
|
||||
new SimpleStaticAbility(new JubilantSkybonderEffect()),
|
||||
Duration.WhileOnBattlefield, filter
|
||||
);
|
||||
).withForceQuotes();
|
||||
effect.setDependedToType(DependencyType.AddingAbility);
|
||||
this.addAbility(new SimpleStaticAbility(effect));
|
||||
}
|
||||
|
|
|
@ -12,7 +12,10 @@ import mage.filter.FilterPermanent;
|
|||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.Iterator;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Loki
|
||||
|
@ -22,6 +25,7 @@ public class GainAbilityAllEffect extends ContinuousEffectImpl {
|
|||
protected Ability ability;
|
||||
protected boolean excludeSource;
|
||||
protected FilterPermanent filter;
|
||||
protected boolean forceQuotes = false;
|
||||
|
||||
public GainAbilityAllEffect(Ability ability, Duration duration) {
|
||||
this(ability, duration, new FilterPermanent());
|
||||
|
@ -143,7 +147,7 @@ public class GainAbilityAllEffect extends ContinuousEffectImpl {
|
|||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
boolean quotes = (ability instanceof SimpleActivatedAbility) || (ability instanceof TriggeredAbility);
|
||||
boolean quotes = forceQuotes || (ability instanceof SimpleActivatedAbility) || (ability instanceof TriggeredAbility);
|
||||
if (excludeSource) {
|
||||
sb.append("Other ");
|
||||
}
|
||||
|
@ -171,4 +175,12 @@ public class GainAbilityAllEffect extends ContinuousEffectImpl {
|
|||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add quotes to gains abilities (by default static abilities don't have it)
|
||||
*/
|
||||
public GainAbilityAllEffect withForceQuotes() {
|
||||
this.forceQuotes = true;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue