Fixed: A saber with a Cunning of Tyranus crystal will now display its damage and element correctly after adding pearls.

This commit is contained in:
Cekis
2019-10-09 23:13:21 -07:00
committed by GitHub
parent 81ec37dcaa
commit f5f3675f20

View File

@@ -1393,7 +1393,7 @@ public class jedi extends script.base_script
{
int color = getIntObjVar(saber, VAR_SABER_BASE + "." + VAR_COLOR);
int colorRow = dataTableSearchColumnForInt(color, "color", JEDI_CRYSTAL_COLOR_TABLE);
if (color == 31 || colorRow < 0)
if (color > 31 || colorRow < 0)
{
setWeaponElementalType(saber, DAMAGE_NONE);
setWeaponElementalValue(saber, 0);