Negative damage bug

Post Reply
RantingRodent
Posts: 32
Joined: Mon Mar 20, 2017 12:01 pm

Negative damage bug

Post 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?
User avatar
johnnylump
Site Admin
Posts: 1262
Joined: Wed Nov 11, 2015 4:12 am

Re: Negative damage bug

Post by johnnylump »

We think we got this one, thanks.
Post Reply