mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Some small improvements to text generation
This commit is contained in:
parent
fa587ce7b7
commit
ef5594cdd3
3 changed files with 17 additions and 9 deletions
|
@ -57,9 +57,9 @@ public class VaultOfTheArchangel extends CardImpl<VaultOfTheArchangel> {
|
|||
this.addAbility(new ColorlessManaAbility());
|
||||
// {2}{W}{B}, {tap}: Creatures you control gain deathtouch and lifelink until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new GainAbilityControlledEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn, new FilterControlledCreaturePermanent(), false),
|
||||
new GainAbilityControlledEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn, new FilterControlledCreaturePermanent("Creatures"), false),
|
||||
new ManaCostsImpl("{2}{W}{B}"));
|
||||
ability.addEffect(new GainAbilityControlledEffect(LifelinkAbility.getInstance(), Duration.EndOfTurn, new FilterControlledCreaturePermanent(), false));
|
||||
ability.addEffect(new GainAbilityControlledEffect(LifelinkAbility.getInstance(), Duration.EndOfTurn, new FilterControlledCreaturePermanent("Creatures"), false));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ import mage.target.common.TargetCreaturePermanent;
|
|||
public class CaptivatingVampire extends CardImpl<CaptivatingVampire> {
|
||||
|
||||
private static final FilterCreaturePermanent filter1 = new FilterCreaturePermanent("Vampire creatures");
|
||||
private static final FilterControlledCreaturePermanent filter2 = new FilterControlledCreaturePermanent("untapped Vampire");
|
||||
private static final FilterControlledCreaturePermanent filter2 = new FilterControlledCreaturePermanent("untapped Vampires you control");
|
||||
|
||||
static {
|
||||
filter1.getSubtype().add("Vampire");
|
||||
|
|
|
@ -77,12 +77,20 @@ public class GainAbilityAttachedEffect extends ContinuousEffectImpl<GainAbilityA
|
|||
}
|
||||
|
||||
private void setText() {
|
||||
String prefix = "";
|
||||
if (attachmentType == AttachmentType.AURA)
|
||||
prefix = "Enchanted";
|
||||
else if (attachmentType == AttachmentType.EQUIPMENT)
|
||||
prefix = "Equipped";
|
||||
staticText = prefix + " creature gains " + ability.getRule();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (attachmentType == AttachmentType.AURA) {
|
||||
sb.append("Enchanted");
|
||||
} else if (attachmentType == AttachmentType.EQUIPMENT) {
|
||||
sb.append("Equipped");
|
||||
}
|
||||
sb.append(" creature ");
|
||||
if (duration == Duration.WhileOnBattlefield) {
|
||||
sb.append("has ");
|
||||
} else {
|
||||
sb.append("gains ");
|
||||
}
|
||||
sb.append(ability.getRule());
|
||||
staticText = sb.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue