sgastudio / wagic

Automatically exported from code.google.com/p/wagic
Other
0 stars 0 forks source link

Hexproof prevents creature from being counted #962

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. You have zero creatures
2. Opponent have only one creature with shroud
3. Play Timely Reinforcements

What is the expected output? What do you see instead?
I expect to receive 3 soldiers. I got nothing instead

What version of the product are you using? On what operating system?
Latest svn build, on Linux.

Please provide any additional information below.
Here is the testsuite that reproduce the problem:

Hexproof prevents creature from being counted

[INIT] FIRSTMAIN [PLAYER1] inplay:forest,island,plains manapool:{2}{W} hand:timely reinforcements life:19 [PLAYER2]

creature 1/1, hexproof

inplay:Invisible stalker [DO] human next [ASSERT] [END]


It seems like the problem is at MtgAbility.cpp:182 in statement
ttc->withoutProtections = true;
It does nothing as withoutProtections is shadowed in
TaretChooser::canTarget(Targetable * target,bool withoutProtections)

Original issue reported on code.google.com by pank...@gmail.com on 19 Aug 2013 at 7:03

GoogleCodeExporter commented 9 years ago
fixed in r4849, thanks Dmitri for the patch!

Original comment by wagic.the.homebrew@gmail.com on 15 Sep 2013 at 2:57