mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
combine into one ability and show correct rules text
This commit is contained in:
parent
4ab979458a
commit
9366222761
1 changed files with 7 additions and 5 deletions
|
@ -31,12 +31,14 @@ public final class SanctuaryBlade extends CardImpl {
|
||||||
// As Sanctuary Blade becomes attached to a creature, choose a color.
|
// As Sanctuary Blade becomes attached to a creature, choose a color.
|
||||||
this.addAbility(new AttachedToCreatureSourceTriggeredAbility(new ChooseColorEffect(Outcome.Benefit), false));
|
this.addAbility(new AttachedToCreatureSourceTriggeredAbility(new ChooseColorEffect(Outcome.Benefit), false));
|
||||||
|
|
||||||
// Equipped creature gets +2/+0
|
// Equipped creature gets +2/+0 and has protection from the last chosen color.
|
||||||
Effect boostEffect = new BoostEquippedEffect(2, 0);
|
Effect boostEffect = new BoostEquippedEffect(2, 0);
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, boostEffect));
|
boostEffect.concatBy(".");
|
||||||
|
SimpleStaticAbility ability = new SimpleStaticAbility(Zone.BATTLEFIELD, boostEffect);
|
||||||
// and has protection from the last chosen color
|
ProtectionChosenColorAttachedEffect protectionEfect = new ProtectionChosenColorAttachedEffect(false);
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ProtectionChosenColorAttachedEffect(false)));
|
protectionEfect.setText("and has protection from the last chosen color.");
|
||||||
|
ability.addEffect(protectionEfect);
|
||||||
|
this.addAbility(ability);
|
||||||
|
|
||||||
// Equip {3}
|
// Equip {3}
|
||||||
this.addAbility(new EquipAbility(Outcome.BoostCreature, new GenericManaCost(3)));
|
this.addAbility(new EquipAbility(Outcome.BoostCreature, new GenericManaCost(3)));
|
||||||
|
|
Loading…
Reference in a new issue