Browse Source

Fix no damage chance for catapult with no ballistics

MichalZr6 9 months ago
parent
commit
a8f9ac41e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/spells/effects/Catapult.cpp

+ 1 - 1
lib/spells/effects/Catapult.cpp

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