Skip to content

Commit 091c062

Browse files
committed
flags1.dead->flags2.killed
1 parent 4f5ad27 commit 091c062

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

full-heal.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ the corpse - creepy!
2525

2626
local utils = require('utils')
2727

28-
validArgs = utils.invert({
28+
validArgs = validArgs or utils.invert({
2929
'r',
3030
'help',
3131
'unit',
@@ -54,7 +54,7 @@ end
5454

5555
if unit then
5656
if args.r then
57-
if unit.flags1.dead then
57+
if unit.flags2.killed then
5858
--print("Resurrecting...")
5959
unit.flags2.slaughter = false
6060
unit.flags3.scuttle = false
@@ -187,7 +187,7 @@ if unit then
187187
--print("Clearing historical wounds...")
188188
histFig.info.wounds = nil
189189
end
190-
190+
191191
local health = unit.health
192192
if health then
193193
for i = 0, #health.flags-1,1 do

0 commit comments

Comments
 (0)