mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
[AFR] Implemented Plate Armor
This commit is contained in:
parent
a78862d1fa
commit
66b224622a
3 changed files with 101 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ import mage.target.common.TargetControlledCreaturePermanent;
|
|||
*/
|
||||
public class EquipAbility extends ActivatedAbilityImpl {
|
||||
|
||||
private String costReduceText = null;
|
||||
|
||||
public EquipAbility(int cost) {
|
||||
this(Outcome.AddAbility, new GenericManaCost(cost));
|
||||
}
|
||||
|
|
@ -31,6 +33,11 @@ public class EquipAbility extends ActivatedAbilityImpl {
|
|||
|
||||
public EquipAbility(final EquipAbility ability) {
|
||||
super(ability);
|
||||
this.costReduceText = ability.costReduceText;
|
||||
}
|
||||
|
||||
public void setCostReduceText(String text) {
|
||||
this.costReduceText = text;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -50,6 +57,10 @@ public class EquipAbility extends ActivatedAbilityImpl {
|
|||
}
|
||||
sb.append(costs.getText());
|
||||
sb.append(manaCosts.getText());
|
||||
if (costReduceText != null && !costReduceText.isEmpty()) {
|
||||
sb.append(' ');
|
||||
sb.append(costReduceText);
|
||||
}
|
||||
if (maxActivationsPerTurn == 1) {
|
||||
sb.append(" Activate only once each turn.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue