1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Merge pull request #2982 from Nordsoft91/fix-pandora

This commit is contained in:
Nordsoft91 2023-09-30 20:24:25 +02:00 committed by GitHub
commit 818e11f364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();