Skip to content

Scripting "Lair of Darkness" #173

@EerieCode

Description

@EerieCode

Since I saw @mercury233 uploaded a first draft of the card, I figured it'd be as good a time as any to ask: any plan on how to proceed with "Lair of Darkness"'s Tribute substitution? The plan I had involved something similar to what was done for "Temple of the Elemental Lords", having the field apply a particular effect to all valid cards (in this case, all DARK monsters the opponent controls) and then using a flag to handle the "once per turn" clause. After that, we'd have to update all cards that Tribute a monster as a cost so that they also check for cards affected by LoD and set the flag if needed: we could easily add some functions to the utilities to further simplify the process, something like aux.CheckReleaseGroupCost and aux.SelectReleaseGroupCost. The main issue with this would be that many old cards would need to be updated (I'm using the Wikia to check them, the number of monsters alone is easily above 165), but I suspect it's unavoidable: I don't think we can simply override Duel.CheckReleaseGroup and Duel.SelectReleaseGroup for this, those functions are also used in situations where LoD's effect wouldn't apply and we have no way to distinguish between those cases.
Does anyone have a better plan for this card?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions