return 0 if we have a combat exception, no reason to risk using hacked/cached values

This commit is contained in:
DarthArgus
2018-03-23 15:46:41 -07:00
committed by CekisSWG
parent 2e85728bd9
commit c767eb0894
@@ -3315,7 +3315,7 @@ public class combat extends script.base_script
if (weaponData == null)
{
CustomerServiceLog("COMBAT_exception", "getAttackerCritMod: Player %TU caused an exception with bad cached data on weapon " + weapon + "/" + getTemplateName(weapon), attacker);
return critMod;
return 0.0; // fuck you
}
boolean isRangedAttacker = isRangedWeapon(weapon);
if (isRangedAttacker)