-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restoration can't be activated if the squad is not missing HP #1436
Comments
I can see the problem after looking at the code. It is indeed kinda messy. It seems the cutoff check is: MultiTargetingStyle.NumTargetsRequired = 1; //At least someone must need healing and HealTargetCondition.ExcludeFullHealth = true; So effectively the ability multi targets all units that don't have full HP and at the same time aren't dead or bleeding out. The build visualization function just makes the gremlin visit those targets that had any effect applied to them by the ability. One the previous Highlander fixes might actually be messing with this intended functionality, as there is the StunRecover effect that always gets applied to all units now, so it could be it's causing the Gremlin to visit all squad units, even if it's not doing anything for them. Needs testing. |
|
Yeah, so the targetting conditions are really wonky here - as you both say, it looks like X2Condition_UnitProperty::ExcludeFullHealth excludes (as a first priority) units that have full health unless they are effected by a status effect that can be healed by a medikit (using native logic) - so this excludes targets with mental status effects, essentially. Then it manually excludes stuff which is dead or bleeding out under seperate conditions. So in effect, although it removes disoriented,panicked,unconscious,dazed,obsessed,berserk etc. from valid units, if the unit isn't damaged or affected by something a medkit can remove the unit won't be targetted which seems like a pretty silly oversight. My proposal is probably to develop a custom X2Condition to replace the current mess which would allow friendly units to be targetted matching the below criteria: Unit is not dead or bleeding out AND Does this sound sensible? |
Restoration states the following:
However, when computing whether the ability can be activated, the ability iterates through squad members. If it finds that all of them are in full health, the ability is unusable. In effect, if no one is hurt, Restoration can't be used as a comically oversized Revival Protocol.
Best also check what the interaction with any of the damaging statuses on squad members is and fix that if needed.
Originally posted to LWOTC: long-war-2/lwotc#1727
The text was updated successfully, but these errors were encountered: