Skip to content
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

[Test]Sometimes test for test_silvermoon_portal() fails #443

Closed
tonyyyye opened this issue May 12, 2018 · 6 comments
Closed

[Test]Sometimes test for test_silvermoon_portal() fails #443

tonyyyye opened this issue May 12, 2018 · 6 comments

Comments

@tonyyyye
Copy link
Contributor

When the ("KAR_077") silvermoon portal summons dire_wolf_alpha the attack value of the designated minion will not be as expected.

@tonyyyye
Copy link
Contributor Author

assert whelp.atk == 3
E AssertionError: assert 4 == 3
E + where 4 = <Minion ('Whelp')>.atk

This is how my case fails

Probably some related cases may fail due to the same reason.
Will check when go through cases.

@jleclanche
Copy link
Owner

Yeah I'm aware of the failure mode. Maybe you can remove the other minion from the board after you've checked for it, I think there's a way to do it that doesn't trigger deathrattles (remove_from_game() was it?)

@tonyyyye
Copy link
Contributor Author

Currently I haven't found remove_from_game().
All related operations are implemented as set:
target.zone = Zone.GRAVEYARD

And I think it is a good idea to add this to Minion and Weapon.

@jleclanche
Copy link
Owner

@tonyyyye Make sure you're on Discord at https://discord.gg/hearthsim-devs -- We can chat there more easily and you can ask anything you like :)

@tonyyyye
Copy link
Contributor Author

tonyyyye commented May 25, 2018

Besides Dire_wolf_alpha, Flametongue_Totem, Wild_Pyromancer will also cause the problem.
While all minions related could be solved by game.current_player.field[-1].bounce(),
Wild_Pyromancer is another problem, which was caused by modification of spell cycle in patch 9.2 .

Hearthstone Mechanics Update – We’ve changed some underlying rules to prevent Wild Pyromancer from triggering off of Mindgames

@tonyyyye
Copy link
Contributor Author

There are no more after-spell-damages when summon a Wild Pyromancer, including this silvermoon portal.
The rest of the excetion cases are tested with like a 10k times without error, so I think it can be modified by that way.

The Wild Pyromancer("NEW1_020") problem will be mentioned by another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants