Merge branch 'lynde' into 'master'

MIC: Lynde and support

See merge request core-developers/forge!5451
This commit is contained in:
Michael Kamensky
2021-09-29 03:47:17 +00:00
3 changed files with 22 additions and 0 deletions

View File

@@ -122,6 +122,9 @@ public class AttachEffect extends SpellAbilityEffect {
continue;
attachment.attachToEntity(attachTo);
if (sa.hasParam("RememberAttached") && attachment.isAttachedToEntity(attachTo)) {
source.addRemembered(attachment);
}
}
if (source.isAura() && sa.isSpell()) {

View File

@@ -3427,6 +3427,9 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
public final boolean isAttachedToEntity() {
return entityAttachedTo != null;
}
public final boolean isAttachedToEntity(final GameEntity e) {
return (entityAttachedTo == e);
}
public final Card getAttachedTo() {
if (entityAttachedTo instanceof Card) {

View File

@@ -0,0 +1,16 @@
Name:Lynde, Cheerful Tormentor
ManaCost:1 U B R
Types:Legendary Creature Human Warlock
PT:2/4
K:Deathtouch
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Curse.YouOwn | Execute$ TrigDelayedTrig | TriggerDescription$ Whenever a curse is put into your graveyard from the battlefield, return it to the battlefield attached to you at the beginning of the next end step.
SVar:TrigDelayedTrig:DB$ DelayedTrigger | Mode$ Phase | Phase$ End Of Turn | Execute$ TrigReturn | RememberObjects$ TriggeredNewCardLKICopy | TriggerDescription$ Whenever a curse is put into your graveyard from the battlefield, return it to the battlefield attached to you at the beginning of the next end step.
SVar:TrigReturn:DB$ ChangeZone | Defined$ DelayTriggerRememberedLKI | Origin$ Graveyard | Destination$ Battlefield | AttachedToPlayer$ You
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | Execute$ TrigChooseCurse | TriggerZones$ Battlefield | OptionalDecider$ You | IsPresent$ Curse.AttachedTo You | TriggerDescription$ At the beginning of your upkeep, you may attach a Curse attached to you to one of your opponents. If you do, draw two cards.
SVar:TrigChooseCurse:DB$ ChooseCard | Choices$ Curse.AttachedTo You | ChoiceTitle$ Select a curse attached to you | SubAbility$ DBChooseOpponent
SVar:DBChooseOpponent:DB$ ChoosePlayer | ConditionDefined$ ChosenCard | ConditionPresent$ Card | Defined$ You | Choices$ Player.Opponent | ChoiceTitle$ Select an opponent to attach the curse to | SubAbility$ DBAttach
SVar:DBAttach:DB$ Attach | Object$ ChosenCard | Defined$ ChosenPlayer | RememberAttached$ True | SubAbility$ DBDraw |
SVar:DBDraw:DB$ Draw | ConditionDefined$ Remembered | ConditionPresent$ Curse.AttachedTo ChosenPlayer | Defined$ You | NumCards$ 2 | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearChosenCard$ True | ClearChosenPlayer$ True | ClearRemembered$ True
DeckNeeds:Type$Curse
Oracle:Deathtouch\nWhenever a Curse is put into your graveyard from the battlefield, return it to the battlefield attached to you at the beginning of the next end step.\nAt the beginning of your upkeep, you may attach a Curse attached to you to one of your opponents. If you do, draw two cards.