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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user