mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 10:33:47 -05:00
Fix miss so that it uses the value from the attack, instead of the attacker
This commit is contained in:
+1
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user