forked from External/mage
put the writing of equipped and enchanted in the attachmenttype
This commit is contained in:
parent
2d4c1f9b06
commit
d0fa00f3af
25 changed files with 46 additions and 120 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue