mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 10:33:47 -05:00
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:
+1
-1
@@ -3235,7 +3235,7 @@ function complete_attack(attacker, target, info) {
|
|||||||
} else if (
|
} else if (
|
||||||
target.dc ||
|
target.dc ||
|
||||||
target.dead ||
|
target.dead ||
|
||||||
(attacker.miss && Math.random() * 100 < attacker.miss) ||
|
(info.miss && Math.random() * 100 < info.miss) ||
|
||||||
(target.avoidance && Math.random() * 100 < target.avoidance)
|
(target.avoidance && Math.random() * 100 < target.avoidance)
|
||||||
) {
|
) {
|
||||||
return xy_emit(
|
return xy_emit(
|
||||||
|
|||||||
Reference in New Issue
Block a user