* Tezzeret, Agent of Bolas - Fixed that the second ability did overwrite all already existing abilities of the target artifact.

This commit is contained in:
LevelX2 2014-05-22 16:26:21 +02:00
parent 0d8325bc79
commit e83ca77b13
3 changed files with 18 additions and 20 deletions

View file

@ -41,8 +41,8 @@ import mage.game.permanent.Permanent;
*/
public class SetCardSubtypeAttachedEffect extends ContinuousEffectImpl<SetCardSubtypeAttachedEffect> {
private List<String> setSubtypes = new ArrayList<String>();
private AttachmentType attachmentType;
private List<String> setSubtypes = new ArrayList<>();
private final AttachmentType attachmentType;
public SetCardSubtypeAttachedEffect(String setSubtype, Duration duration, AttachmentType attachmentType) {
super(duration, Layer.TypeChangingEffects_4, SubLayer.NA, Outcome.Benefit);
@ -84,10 +84,11 @@ public class SetCardSubtypeAttachedEffect extends ContinuousEffectImpl<SetCardSu
private void setText() {
StringBuilder sb = new StringBuilder();
if (attachmentType == AttachmentType.AURA)
if (attachmentType == AttachmentType.AURA) {
sb.append("Enchanted");
else if (attachmentType == AttachmentType.EQUIPMENT)
} else if (attachmentType == AttachmentType.EQUIPMENT) {
sb.append("Equipped");
}
sb.append(" creature is a");
for (String subtype: this.setSubtypes) {

View file

@ -87,6 +87,9 @@ public class SetPowerToughnessTargetEffect extends ContinuousEffectImpl<SetPower
@Override
public String getText(Mode mode) {
if (staticText != null && !staticText.isEmpty()) {
return staticText;
}
StringBuilder sb = new StringBuilder();
sb.append("target ").append(mode.getTargets().get(0).getTargetName()).append(" becomes ");
sb.append(power).append("/").append(toughness).append(" ").append(duration.toString());