Merge pull request #2548 from TwilitRealm/fix-double-def

Fix Double Defense Magic Armor cheat
This commit is contained in:
TakaRikka
2026-09-21 21:57:33 -07:00
committed by GitHub
+3
View File
@@ -206,6 +206,9 @@ int daAlink_c::setDamagePoint(int i_dmgAmount, BOOL i_checkZoraMag, BOOL i_setDm
#if TARGET_PC
if(checkMagicArmorWearAbility() && dusk::getSettings().game.armorRupeeDrain.getValue() == dusk::MagicArmorMode::DOUBLE_DEFENSE) {
i_dmgAmount /= 2;
if (i_dmgAmount <= 0) {
i_dmgAmount = 1;
}
}
#endif
dComIfGp_setItemLifeCount(-i_dmgAmount, 0);