-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scripting "Lair of Darkness" #173
Comments
time to resurrect myself I guess? |
I finished checking all those cards yesterday. If I'm correct, the cards that tribute other monsters alone would amount to around 174 monsters + 100 Spells/Trap, for a total of 274 cards that would require an update. There are also 155 monsters that only tribute themselves, but their situation is ambiguous: I've seen some argue that, since cards like "Cosmic Flare" allow you to substitute for a Tribute cost, these costs might also be affected by Lair of Darkness, but that's something we can't know for sure until we have the rulings. Worst case scenario, we'd have 429 cards to update. |
I agree that we should update lots of cards, and I think we can add a new parameter to |
By doing so, though, we'd have to update every single card that uses CheckReleaseGroup and similar, otherwise it could cause issues if the filter for tributes takes extra parameters. I think, by making a whole new function instead, we can at least reduce the number of scripts that will need to be changed. |
@VanillaSalt This card is going to be released in this weekend. Can you script this card? |
inst eerie doing it? |
@mercury233 I've been working on Lair of Darkness for a while, and I managed to complete a working version yesterday. I'd rather wait until release before uploading it though, to get confirmation about self-Tributing, maintenance costs and some specific cards such as Voltanis and Tyrant Dragon. |
16f74ae Fluorohydride/ygopro-core@2194059 |
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?
The text was updated successfully, but these errors were encountered: