From 0d5e2a7126e278f6de4e23cd2c9d8deccde308cd Mon Sep 17 00:00:00 2001 From: posimagi Date: Fri, 20 Sep 2019 12:35:52 -0700 Subject: [PATCH] Fix parry pronoun --- addons/battlemod/parse_action_packet.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/battlemod/parse_action_packet.lua b/addons/battlemod/parse_action_packet.lua index 396ef4d507..a94786ee33 100644 --- a/addons/battlemod/parse_action_packet.lua +++ b/addons/battlemod/parse_action_packet.lua @@ -227,9 +227,9 @@ function parse_action_packet(act) if m.fields.status then numb = m.status else numb = pref_suf((m.cparam or m.param),m.message) end if msg and m.message == 70 and not simplify then -- fix pronoun on parry - if act.actor.race == 0 then + if v.target[1].race == 0 then msg = msg:gsub(' his ',' its ') - elseif female_races:contains(act.actor.race) then + elseif female_races:contains(v.target[1].race) then msg = msg:gsub(' his ',' her ') end end