Skip to content

Commit

Permalink
fix 4e powers again
Browse files Browse the repository at this point in the history
this time the issue was situations where string contained [EFFECT-2] or something.
  • Loading branch information
bmos committed Aug 24, 2021
1 parent 7046fd7 commit d7beb31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/manager_ammunition.lua
Expand Up @@ -51,7 +51,7 @@ local function getWeaponName(s)
sWeaponName = sWeaponName:gsub('%[ATTACK #%d+ %(%u%)%]', '');
sWeaponName = sWeaponName:gsub('%[%u+%]', '');
if sWeaponName:match('%[USING ') then
sWeaponName = sWeaponName:match('%[USING (.+)%]');
sWeaponName = sWeaponName:match('%[USING (.-)%]');
end
sWeaponName = sWeaponName:gsub('%[.+%]', '');
sWeaponName = sWeaponName:gsub(' %(vs%. .+%)', '');
Expand Down

0 comments on commit d7beb31

Please sign in to comment.