sgastudio / wagic

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

Exquisite blood + Sanguine bond infinite loop #953

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

#DESC: Sanguine Bond Whenever you gain life, target opponent loses that much 
life.
#DESC: Exquisite Blood: Whenever an opponent loses life, you gain that much 
life.

Having those 2 in game causes an infinite loop that never ends.
Previous attempts at fixing the issus have caused side effects and I reverted 
them ( see r4676 and r4692 )

Test:

[INIT]
firstmain
[PLAYER1]
inplay:Exquisite blood,Sanguine Bond
hand:Lightning bolt
manapool:{R}
[PLAYER2]
[DO]
Lightning bolt
p2
[ASSERT]
firstmain
[PLAYER1]
inplay:Exquisite blood,Sanguine Bond
graveyard:Lightning bolt
[PLAYER2]
life:0
[END]

Original issue reported on code.google.com by wagic.the.homebrew@gmail.com on 5 May 2013 at 1:52

GoogleCodeExporter commented 9 years ago
Added a test file in projects\mtg\bin\Res\test\bugs\exquisite_blood_i953.txt

Original comment by wagic.the.homebrew@gmail.com on 5 May 2013 at 1:53