1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Fix no damage chance for catapult with no ballistics

This commit is contained in:
MichalZr6
2025-03-13 17:50:18 +01:00
parent 4b0fe811ac
commit a8f9ac41e1

View File

@@ -263,7 +263,7 @@ void Catapult::adjustHitChance()
vstd::abetween(wall, 0, 100);
vstd::abetween(crit, 0, 100);
vstd::abetween(hit, 0, 100 - crit);
vstd::amin(noDmg, 100 - hit - crit);
noDmg = 100 - hit - crit;
}
void Catapult::serializeJsonEffect(JsonSerializeFormat & handler)