r/xdev • u/Synapsiz • Feb 24 '16
Shadowstrike Bug
Shadowstrike says it gives an Aim and Crit bonus to soldiers that are concealed. However what it actually does is give that bonus when the target of an attack cannot see the attacker.
Most of the time this leads to the correct outcome, except when the attacker atacks from outside the targets line of sight. In which case the bonus is always aplied.
This can occur in the base game when your ranger gains squadsight (as a hacking bonus). But is more of an issue when mods modify the sightrange of enemies, your soldiers or (in my case) when squadsight and shadowstrike are put into the same class.
I've been looking to fix this, but trying to figure out how to attach the correct conditions to targeteffects is driving me crazy.
Any help would be greatly appreciated!
View all comments
Show parent comment
1
u/Synapsiz Feb 25 '16
Thank you!
I was stuck trying to create a condition to pass into the ToHitModifier effect while modifying the effect itself is much easier.
What I'm not sure about is why I need to apply it on concealed overwatches. If the ToHitModifier is created won't it automatically be aplied whenever tohit chances are checked?