Skip to content

Commit

Permalink
Update XComGameState_Ability.uc
Browse files Browse the repository at this point in the history
Move issue tags, correct bracket indendation.
  • Loading branch information
Iridar authored Jan 6, 2025
1 parent 9da8748 commit 8882904
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1230,13 +1230,14 @@ function NormalDamagePreview(StateObjectReference TargetRef, out WeaponDamageVal
MaxDamagePreview.Shred += MaxDamagePreview.Shred * BurstFire.NumExtraShots;
}
}

// Begin Issue #1394
/// HL-Docs: ref:Bugfixes; issue:1394
/// Abilities which do not specify a custom damage preview function will show rupture damage on the damage
/// preview, even if the ability is not capable of doing any damage (e.g. self target abilities like reload).
/// Checking that the previewed damage is non-zero before adding rupture damage to it mitigates this and improves
/// the display (mainly for modded gameplay, but it also occurs in niche base game circumstances e.g. if a ruptured
/// unit becomes mind controlled).
// Begin Issue #1394
if (Rupture > 0)
{
DamageModInfo.bIsRupture = true;
Expand All @@ -1253,8 +1254,8 @@ function NormalDamagePreview(StateObjectReference TargetRef, out WeaponDamageVal
MaxDamagePreview.Damage += Rupture;
MaxDamagePreview.BonusDamageInfo.AddItem(DamageModInfo);
}
}
// End Issue #1394
}

if (DestructibleState != none)
{
Expand Down

0 comments on commit 8882904

Please sign in to comment.