Skip to content

Commit

Permalink
Fix game crashes caused by crazy-theatre trying to reduce damage with…
Browse files Browse the repository at this point in the history
…out source like bleed.
  • Loading branch information
JianmengYu authored and Ruin0x11 committed Jan 2, 2023
1 parent d24c909 commit 9bfd8af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2.05-custom-gx/chara_func.hsp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9bfd8af

Please sign in to comment.