thefiremind wrote:Yes, I think I understood the problem: if SecondaryPlayer() is nil, the first RESOLUTION_TIME_ACTION doesn't initialize the target chest. The fix is easy:
- Code: Select all
local card = EffectDC():Get_Targets(0):Get_CardPtr(0)
in the second RESOLUTION_TIME_ACTION should be changed to
- Code: Select all
local card = EffectDC():Get_Targets(0) and EffectDC():Get_Targets(0):Get_CardPtr(0)
(as pcastellazzi taught me.

)
It's probably more along the lines of the SecondaryPlayer had no cards in hand, though the fix is the same.
It's going to take me a little bit of time to get the it updated again because I'm kind of in the middle of something else at the moment. Though I'll get it up relatively soon.
Edit: Updated with some minor changes to the Undying code.
Edit 2: Crap, I just realized that now Undying doesn't work for Mikaeus, the Unhallowed because it is granting the ability to other cards which then don't have the delayed trigger ability. Stand by while I try to figure out a way to make THAT work.
Edit 3: Nothing is coming to me at the moment, so for the time being I have reverted to not include Mikaeus, the Unhallowed until I can come up with a proper fix for him (I'll probably have to do something overly complicated using my fake ObjectDC, though I'm trying to avoid that).