- Fix Myr Welder + Ornate Kanzashi, make Myr Welder use the Imprint mechanism.

This commit is contained in:
Agetian
2018-12-08 10:36:18 +03:00
parent 5143505bd4
commit e10f90cf49
2 changed files with 12 additions and 9 deletions

View File

@@ -400,13 +400,16 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
} }
public void setOriginalHost(final Card c) { public void setOriginalHost(final Card c) {
grantorCard = c; grantorCard = c;
for (List<AbilitySub> addSaList : this.getAdditionalAbilityLists().values()) { if (subAbility != null) {
for (SpellAbility addSa : addSaList) { subAbility.setOriginalHost(c);
addSa.setOriginalHost(c);
}
} }
if (this.getSubAbility() != null) { for (AbilitySub sa : additionalAbilities.values()) {
this.getSubAbility().setOriginalHost(c); sa.setOriginalHost(c);
}
for (List<AbilitySub> list : additionalAbilityLists.values()) {
for (AbilitySub sa : list) {
sa.setOriginalHost(c);
}
} }
} }

View File

@@ -2,11 +2,11 @@ Name:Myr Welder
ManaCost:3 ManaCost:3
Types:Artifact Creature Myr Types:Artifact Creature Myr
PT:1/4 PT:1/4
S:Mode$ Continuous | Affected$ Card.Self | EffectZone$ Battlefield | GainsAbilitiesOf$ Card.IsRemembered+ExiledWithSource | GainsAbilitiesOfZones$ Exile | Description$ CARDNAME has all activated abilities of all cards exiled with it. S:Mode$ Continuous | Affected$ Card.Self | EffectZone$ Battlefield | GainsAbilitiesOf$ Card.IsImprinted+ExiledWithSource | GainsAbilitiesOfZones$ Exile | Description$ CARDNAME has all activated abilities of all cards exiled with it.
A:AB$ ChangeZone | Cost$ T | ValidTgts$ Artifact | Origin$ Graveyard | Destination$ Exile | TgtPrompt$ Select target artifact | RememberChanged$ True | PrecostDesc$ Imprint — | SpellDescription$ Exile target artifact card from a graveyard. A:AB$ ChangeZone | Cost$ T | ValidTgts$ Artifact | Origin$ Graveyard | Destination$ Exile | TgtPrompt$ Select target artifact | Imprint$ True | PrecostDesc$ Imprint — | SpellDescription$ Exile target artifact card from a graveyard.
T:Mode$ ChangesZone | Origin$ Exile | Destination$ Any | Static$ True | ValidCard$ Card.IsRemembered+ExiledWithSource | Execute$ DBForget T:Mode$ ChangesZone | Origin$ Exile | Destination$ Any | Static$ True | ValidCard$ Card.IsRemembered+ExiledWithSource | Execute$ DBForget
SVar:DBForget:DB$ Pump | ForgetObjects$ TriggeredCard SVar:DBForget:DB$ Pump | ForgetObjects$ TriggeredCard
T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanup | Static$ True T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanup | Static$ True
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True SVar:DBCleanup:DB$ Cleanup | ClearImprinted$ True
SVar:Picture:http://www.wizards.com/global/images/magic/general/myr_welder.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/myr_welder.jpg
Oracle:Imprint — {T}: Exile target artifact card from a graveyard.\nMyr Welder has all activated abilities of all cards exiled with it. Oracle:Imprint — {T}: Exile target artifact card from a graveyard.\nMyr Welder has all activated abilities of all cards exiled with it.