Aside from 2 (nearly) impossible cards, I've got every Planechase card coded and tested. Now, I just need help getting 5 of the cards fixed since everything I've tried hasn't worked. Once that's done, I will release the whole thing to the CW (including a pre-built Planechase deck with all of the cards for ease of dropping it into your game).
If anyone reading this can review the code and make suggestions on possible fixes that would be great. You can't really test or try these (except in isolation) because I haven't released all of the supporting cards/files yet. So I'm more looking for code review/comment.
Here are my problem cards . . .
Agyrem The card's first two abilities work beautifully and as intended. The third ability is where the problem is. The phrase "until a player planeswalks" is not managed by a trigger in the DOTP2014 implementation. It is managed by the plane leaving the battlefield (because it will only leave as a result of planeswalking). I've tried several things, but none have worked. This link contains several attempts on that ability:
https://pastebin.com/YikGCeqe.
Eloren Wilds It's first ability works great. It's the second (Chaos) ability that is the issue, and it's similar to
Agyrem. I need to get it to recognize that the players have planeswalked away from it and stop the Chaos effect. Here's a link to the code I've attempted for this ability:
https://pastebin.com/M4pS5JiG.
Glen Elendra The issue with this card concerns its first ability only. I don't think I can use Interrogate for it. (Or if I can, I'm unsure how to do so.) Here's a link to what I've attempted:
https://pastebin.com/D2xVHtByMirrored Depths This one has issues with it's first ability only. No matter what I try, it won't counter a spell when the coin flip is a loss. I really think the issue is countering the spell rather than processing the flip. Maybe the combination of coin flipping and countering a spell in the same ability is just bugged? Here's a link to code for the ability:
https://pastebin.com/rnCS5UHDThe Maelstrom The first ability is not working (Chaos ability is good). I've tried so many versions of this. I re-coded it a couple times even. Sometimes it will prompt and ask if you want to reveal the card, but then it never does anything beyond that. See this link for existing attempts:
https://pastebin.com/hq2uYhy6A couple things to keep in mind . . .
1.) To facilitate Planechase in DOTP2014, we don't use EffectController() much on most plane cards because it is the AI planar deck controller who, for all intents and purposes, is not really playing the game. The AI planar deck controller exists to play the plane cards, maintain the planar deck, and allow for planar die rolling.
2.) As a result of #1 above, most of the planes' triggered abilities require first determining who the current player is because they are the trigger player rather than the Effect Controller. (For example, "rolling Chaos" on the planar die is a trigger. The EffectController() of the plane is not doing that. It's the active player.) In fact, we have to eliminate the EffectController from some triggers, filters, etc., because we don't want the EffectController doing anything on its own.
3.) You will see a function I created that returns the current player . . . CW_Planechase_GetCurrentPlayer(). This has been tested and works so it shouldn't be the issue for any of the problem cards.
I appreciate any help you can provide. Having played many games with Planechase to test these 80+ cards, it is a lot of fun. I can't wait to share it with everyone.