From 1502ea22506e5fe1176f10e2eb1e458a86b99fe2 Mon Sep 17 00:00:00 2001 From: nordsoft Date: Sat, 30 Sep 2023 01:33:12 +0200 Subject: [PATCH] Fix pandora mana problem --- lib/mapObjects/CGPandoraBox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mapObjects/CGPandoraBox.cpp b/lib/mapObjects/CGPandoraBox.cpp index de2a00448..9d1a9874c 100644 --- a/lib/mapObjects/CGPandoraBox.cpp +++ b/lib/mapObjects/CGPandoraBox.cpp @@ -101,7 +101,7 @@ void CGPandoraBox::grantRewardWithMessage(const CGHeroInstance * h, int index, b } } - if(vi.reward.manaDiff || vi.reward.manaPercentage) + if(vi.reward.manaDiff || vi.reward.manaPercentage >= 0) txt = setText(temp.manaDiff > 0, 177, 176, h); for(auto b : vi.reward.bonuses) @@ -155,7 +155,7 @@ void CGPandoraBox::grantRewardWithMessage(const CGHeroInstance * h, int index, b temp.resources.amin(0); temp.resources.amax(0); temp.manaDiff = 0; - temp.manaPercentage = 0; + temp.manaPercentage = -1; temp.spells.clear(); temp.creatures.clear(); temp.bonuses.clear();