Page 1 of 1

Negative damage bug

Posted: Thu Jun 01, 2017 1:20 am
by RantingRodent
I've never seen this issue in my own play, but I have seen it on streams or let's plays once or twice. Recent reference from Reddit: https://www.reddit.com/r/Xcom/comments/ ... ve_damage/

I don't know how to set up a robust test for this, but every time I've seen it, armour and damage reduction were both applying to the same attack, and that attack was dealing a very small amount of damage. ie:
  • Reaper attacks beyond the first against armoured enemies with a low roll or graze
  • Using Incoming, and then a heavily armoured soldier gets hit with Micromissiles
  • etc
I suspect that the code which prevents damage reduction from reducing damage below one is being applied after armour but the check is comparing against pre-armour damage. It takes a relatively uncommon situation for the damage to actually be pushed below one by damage reduction in the first place, so it's not easy to test. What would be the best setup to make this very likely to happen?

Re: Negative damage bug

Posted: Sat Jun 03, 2017 12:50 am
by johnnylump
We think we got this one, thanks.