mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-16 19:20:05 +00:00
Fix guard FOR REAL
This commit is contained in:
parent
efb3887e3e
commit
0fcf41cbfe
@ -155,7 +155,7 @@ static SkillResult handleSkillBatteryDrain(SkillData* skill, int power, ICombata
|
||||
|
||||
int boostDrain = 0;
|
||||
int potionDrain = 0;
|
||||
if(blocked) {
|
||||
if(!blocked) {
|
||||
boostDrain = (int)(skill->values[0][power] * scalingFactor);
|
||||
if(boostDrain > plr->batteryW) boostDrain = plr->batteryW;
|
||||
plr->batteryW -= boostDrain;
|
||||
|
Loading…
Reference in New Issue
Block a user