diff --git a/src/Battling/Models/BattleCreature.cpp b/src/Battling/Models/BattleCreature.cpp index ac1a6c8..4453b94 100644 --- a/src/Battling/Models/BattleCreature.cpp +++ b/src/Battling/Models/BattleCreature.cpp @@ -31,6 +31,7 @@ uint32_t Battling::BattleCreature::GetBoostedStat(Core::Statistic stat) { void Battling::BattleCreature::RecalculateFlatStats() { this->_flatStats = this->__Battle->GetLibrary()->GetStatCalculator()->CalculateFlatStats(this); + RecalculateBoostedStats(); } void Battling::BattleCreature::RecalculateBoostedStats() { this->_boostedStats = this->__Battle->GetLibrary()->GetStatCalculator()->CalculateFlatStats(this); @@ -39,6 +40,7 @@ void Battling::BattleCreature::RecalculateBoostedStats() { void Battling::BattleCreature::RecalculateFlatStat(Core::Statistic stat) { auto s = this->__Battle->GetLibrary()->GetStatCalculator()->CalculateFlatStat(this, stat); this->_flatStats.SetStat(stat, s); + RecalculateBoostedStat(stat); } void Battling::BattleCreature::RecalculateBoostedStat(Core::Statistic stat) {