sgastudio / wagic

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

Life delta bonus is calculated wrong #898

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Win a game dealing the last blow using several creatures
2.
3.

What is the expected output? What do you see instead?
The opponent should be at e.g. -18, instead, he's at -1 because the damages 
from each creature are calculated one by one and since the first one killed 
him, the other ones are not taken into account, which makes the life delta 
bonus wrong.

What version of the product are you using? On what operating system?
0.18.6 Android on HTC Wildfire S

Please provide any additional information below.

Original issue reported on code.google.com by barzh...@gmail.com on 29 Jul 2012 at 4:22

GoogleCodeExporter commented 9 years ago
Did any of the creatures have first strike? I have never had this issue, except 
that if I forget that some of my attackers have first strike my opponent may 
die before the others deal their regular damage.

Original comment by Dansi...@gmail.com on 7 Aug 2012 at 8:00

GoogleCodeExporter commented 9 years ago
Did any of the creatures have first strike? or double strike. the match doesn't 
calculate this bonus til after didWin() is run....which happens when a player 
is defeated in gameobserver::update(). 

Original comment by omegabla...@gmail.com on 24 Aug 2012 at 12:32