Refactor: Fix reminder text on EquipAbility.

This commit is contained in:
Alex Vasile 2022-07-01 17:44:02 -04:00
parent 4cd262c45d
commit df18950f15

View file

@ -63,7 +63,7 @@ public class EquipAbility extends ActivatedAbilityImpl {
@Override @Override
public String getRule() { public String getRule() {
String targetText = getTargets().get(0) != null ? getTargets().get(0).getFilter().getMessage() : "creature"; String targetText = getTargets().get(0) != null ? getTargets().get(0).getFilter().getMessage() : "creature";
String reminderText = " <i>(" + manaCosts.getText() + ": Attach to target " + targetText + ". Equip only as a sorcery. This card enters the battlefield unattached and stays on the battlefield if the creature leaves.)</i>"; String reminderText = " <i>(" + manaCosts.getText() + ": Attach to target " + targetText + ". Equip only as a sorcery.)</i>";
StringBuilder sb = new StringBuilder("Equip"); StringBuilder sb = new StringBuilder("Equip");
if (!targetText.equals("creature you control")) { if (!targetText.equals("creature you control")) {