Merge pull request #220 from FreezePhoenix/patch-15

Fix miss so that it uses the value from the attack, instead of the attacker
This commit is contained in:
Kaan Soral
2026-01-18 10:53:20 +03:00
committed by GitHub
+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(