Fix guard FOR REAL

This commit is contained in:
gsemaj 2023-08-19 15:03:16 -07:00
parent efb3887e3e
commit 0fcf41cbfe
No known key found for this signature in database
GPG Key ID: 24B96BAA40497929

View File

@ -155,7 +155,7 @@ static SkillResult handleSkillBatteryDrain(SkillData* skill, int power, ICombata
int boostDrain = 0; int boostDrain = 0;
int potionDrain = 0; int potionDrain = 0;
if(blocked) { if(!blocked) {
boostDrain = (int)(skill->values[0][power] * scalingFactor); boostDrain = (int)(skill->values[0][power] * scalingFactor);
if(boostDrain > plr->batteryW) boostDrain = plr->batteryW; if(boostDrain > plr->batteryW) boostDrain = plr->batteryW;
plr->batteryW -= boostDrain; plr->batteryW -= boostDrain;