long-war-2 / lwotc

Port of Long War 2 to XCOM 2's War of the Chosen expansion
342 stars 89 forks source link

Flashbangs on disoriented units don't break overwatch #55

Closed pledbrook closed 5 years ago

pledbrook commented 5 years ago

Robojumper pointed out this line in the original LW2 highlander (in X2StatusEffects:CreateDisorientedStatusEffect):

PersistentStatChangeEffect.bForceReapplyOnRefresh = true; // LWS: added to fix bug where disorient applied to an already-disoriented unit won't remove overwatch
pledbrook commented 5 years ago

It looks like a decision has been made to simply enable this behaviour in the community highlander on the basis the current behaviour is confusing and unintuitive.

pledbrook commented 5 years ago

This also requires changes to X2Effect_PersistentStatChange and XComGameState_Effect.uc.

pledbrook commented 5 years ago

Fixed by this change to the community highlander.