put the writing of equipped and enchanted in the attachmenttype

This commit is contained in:
ingmargoudt 2017-02-19 23:58:32 +01:00
parent 2d4c1f9b06
commit d0fa00f3af
25 changed files with 46 additions and 120 deletions

View file

@ -88,11 +88,7 @@ public class AttacksAttachedTriggeredAbility extends TriggeredAbilityImpl {
@Override
public String getRule() {
StringBuilder sb = new StringBuilder("Whenever ");
if (attachmentType.equals(AttachmentType.EQUIPMENT)) {
sb.append("equipped");
} else {
sb.append("enchanted");
}
sb.append(attachmentType.verb().toLowerCase());
return sb.append(" creature attacks, ").append(super.getRule()).toString();
}
}