Changed DiesAttachedTriggeredAbility.java to check if description has "equipped", if so, writes "Whenever" instead of "When"

resolves#6990
and fixes Malefic Scythe in #6643

Signed-off-by: Andre Cabaca <andre.cabaca24@gmail.com>
This commit is contained in:
Andre Cabaca 2020-08-21 17:23:39 +01:00
parent 0565d32f55
commit 90cc44cacf

View file

@ -115,7 +115,14 @@ public class DiesAttachedTriggeredAbility extends TriggeredAbilityImpl {
@Override @Override
public String getRule() { public String getRule() {
StringBuilder sb = new StringBuilder("When ").append(attachedDescription); StringBuilder sb = new StringBuilder();
if(attachedDescription.startsWith("equipped")) {
sb.append("Whenever ");
}
else {
sb.append("When ");
}
sb.append(attachedDescription);
if (diesRuleText) { if (diesRuleText) {
sb.append(" dies, "); sb.append(" dies, ");
} else { } else {