Skip to content

Commit

Permalink
Implement Issue #1281 - if a damage effect ignores armor, max out Pie…
Browse files Browse the repository at this point in the history
…rce in its Damage Preview
  • Loading branch information
ps2guides authored and Iridar committed Oct 29, 2023
1 parent c1dde05 commit 8c2a11e
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,16 @@ simulated function GetDamagePreview(StateObjectReference TargetRef, XComGameStat

if (!bDoesDamageIgnoreShields)
AllowsShield += MaxDamagePreview.Damage;

// Start Issue #1281
/// HL-Docs: ref:Bugfixes; issue:1281
/// If the effect ignores all armor, max out the Pierce value in the Damage Preview so it will show up on the unit flag damage preview.
if (bIgnoreArmor)
{
MinDamagePreview.Pierce = MaxInt;
MaxDamagePreview.Pierce = MaxInt;
}
// End Issue #1281
}

simulated function ApplyFalloff( out int WeaponDamage, Damageable Target, XComGameState_Item kSourceItem, XComGameState_Ability kAbility, XComGameState NewGameState )
Expand Down

0 comments on commit 8c2a11e

Please sign in to comment.