mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 06:52:02 -08:00
* Tezzeret, Agent of Bolas - Fixed that the second ability did overwrite all already existing abilities of the target artifact.
This commit is contained in:
parent
0d8325bc79
commit
e83ca77b13
3 changed files with 18 additions and 20 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue