From 6bbaf837d97ff71380368330f062ca9cc07caee2 Mon Sep 17 00:00:00 2001 From: Kyromyr Date: Fri, 10 Feb 2017 18:09:47 +0100 Subject: [PATCH] Fixed Beacon FRW. Hopefully didn't break anything else. --- D2Stats.au3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/D2Stats.au3 b/D2Stats.au3 index bf426a3..ca2e7e0 100644 --- a/D2Stats.au3 +++ b/D2Stats.au3 @@ -216,7 +216,7 @@ func UpdateStatValues() endif endfunc -func FixStatVelocities() +func FixStatVelocities() ; This game is stupid for $i = 67 to 69 $stats_cache[1][$i] = 0 next @@ -242,7 +242,7 @@ func FixStatVelocities() $index = _MemoryRead($pStats + $i*8 + 2, $d2handle, "word") $val = _MemoryRead($pStats + $i*8 + 4, $d2handle, "int") - if ($index == 350) then $skill = $val + if ($index == 350 and $val <> 511) then $skill = $val if ($ownerType == 4 and $index == 67) then $stats_cache[1][$index] += $val ; Armor FRW penalty next if ($ownerType == 4) then continueloop