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
Oubliette does not return exiled creature with counters on it #1842
Comments
Fixed it. Going for counters now. |
Fixed. Tho as you'll see, I'm not very comfortable with the solution. Yet, the permanent should still be around while this effect resolves, so the data should still be available. And I do check for null, so no NPE this time (at least not for this reason, lol) |
Have you gotten to try out the manual testing "cheats"? Or taken a look at
|
I was hoping to get a new card coded as guinea pig to motivate learning about that. Oubliette seemed too urgent (I don't know how long I'm going to take to get to it). Feel free to ignore the request. |
hmm.. I have no idea how to "cherry pick" the Oubliette one, since the ATQ commit is under scrutiny (that's ok :)). Maybe you can just check it out in my repo and copy it over, if you feel it's urgent enough to call for it? I'm going to try and learn about the testing process. |
It's by no means urgent. It won't be able to be released until whenever the On Mon, Apr 11, 2016 at 2:10 PM, Marco-Marin notifications@github.com
Derek Monturo |
Good news. Managed to figure out the testing set up. \o/ Discovered that my suspicion was right in that my code isn't able to get the target of oubliette. It seems to not yet be set, even though the game has already asked for it. Should I get the stack instead to get to it? OH, maybe the "source" argument is the one I'm looking for? |
Yes. got it. :) Sry to 'bug', now things will roll smoother... |
I need some help. Exiling works but returning doesn't. I can see it DOES get registered as an Ability in the card but it isn't triggered. I "copied" the effect from Flickerform and it registered directly on the game object, but I can't do that here because it isn't a "at Phase" trigger but depends on the permanent leaving. |
I didn't fix this, but I did just test it as part of another issue, and it seems to work just fine. |
Oubliette oracle text:
"When Oubliette enters the battlefield, exile target creature and all Auras attached to it. Note the number and kind of counters that were on that creature.
When Oubliette leaves the battlefield, return that exiled card to the battlefield under its owner's control tapped with the noted number and kind of counters on it. If you do, return the other exiled cards to the battlefield under their owner's control attached to that permanent."
The tooltip text does not reflect the Oracle text either. Looking at the code, all it does is exile a creature and then return the creature if Oubliette leaves the battlefield - so all the parts of Oubliette dealing with exiling Auras attached to it, and returning the creature with the Auras and counters are not doing anything.
Simple test:
Give +1+1 counter to a creature with the spell Battlegrowth
Exile creature with Oubliette
Disenchant the Oubliette
Creature returns without +1+1 counter on it.
The text was updated successfully, but these errors were encountered: