Fix miss so that it uses the value from the attack, instead of the attacker

This commit is contained in:
FreezePhoenix
2026-01-14 10:59:31 -05:00
committed by GitHub
parent e7a5edd347
commit 432dbbf829
+1 -1
View File
@@ -3235,7 +3235,7 @@ function complete_attack(attacker, target, info) {
} else if (
target.dc ||
target.dead ||
(attacker.miss && Math.random() * 100 < attacker.miss) ||
(info.miss && Math.random() * 100 < info.miss) ||
(target.avoidance && Math.random() * 100 < target.avoidance)
) {
return xy_emit(