From 9bfd8afdda9ba9a625e41a4182f99d6b6ad96055 Mon Sep 17 00:00:00 2001 From: JianmengYu Date: Mon, 26 Dec 2022 12:40:31 +0800 Subject: [PATCH] Fix game crashes caused by crazy-theatre trying to reduce damage without source like bleed. --- 2.05-custom-gx/chara_func.hsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.05-custom-gx/chara_func.hsp b/2.05-custom-gx/chara_func.hsp index 23c5d434..3876feb1 100644 --- a/2.05-custom-gx/chara_func.hsp +++ b/2.05-custom-gx/chara_func.hsp @@ -5690,12 +5690,12 @@ if ( cdata(CDATA_CONDITION_ANGRY, dmghp_source) > 0 ) { locvar_dmghp_dmg *= 2 } - } if ( cdata(CDATA_FRIENDSHIP, CHARA_PLAYER) == 5 ) { if ( locvar_dmghp_dmg >= 100 ) { locvar_dmghp_dmg = locvar_dmghp_dmg / 100 * (100 + limit(cdata(CDATA_SANITY, dmghp_source), 0, 100)) } } + } if ( cdata(CDATA_DIRECTIVE_MODE, dmghp_charid) == DIRECTIVE_MODE_DEFENSIVE ) { locvar_dmghp_dmg = locvar_dmghp_dmg / 3 }