Fixed changing stat boost by negative actually increasing it.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-01-05 14:57:17 +01:00
parent fbfcc53a02
commit 144d17d859
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ void Battling::Creature::ChangeStatBoost(Core::Statistic stat, int8_t diffAmount
if (diffAmount > 0)
this->_statBoost.IncreaseStatBy(stat, diffAmount);
else
this->_statBoost.DecreaseStatBy(stat, diffAmount);
this->_statBoost.DecreaseStatBy(stat, -diffAmount);
this->RecalculateBoostedStat(stat);
}