From c164d634785795482bde29b9a22060df9f4781c0 Mon Sep 17 00:00:00 2001 From: Lothrik Date: Tue, 28 Dec 2021 00:20:59 -0800 Subject: [PATCH] Fix Projectile Attack Mod Parsing Some skills are tagged ProjectileAttack (and Attack) but not Projectile. This generally means the skill deals projectile attack damage, but does not actually fire a projectile that can collide with terrain (e.g. Rain of Arrows, Storm Rain, Blast Rain, Toxic Rain, Artillery Ballista). In order for nodes like Lethality to correctly match these skills (while still matching all normal projectile attacks) we need to check the ProjectileAttack tag explicitly. --- src/Modules/ModParser.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Modules/ModParser.lua b/src/Modules/ModParser.lua index bd1c050795..76da53779a 100644 --- a/src/Modules/ModParser.lua +++ b/src/Modules/ModParser.lua @@ -862,8 +862,8 @@ local preFlagList = { ["^attack skills [hd][ae][va][el] "] = { keywordFlags = KeywordFlag.Attack }, ["^spells [hd][ae][va][el] a? ?"] = { flags = ModFlag.Spell }, ["^spell skills [hd][ae][va][el] "] = { keywordFlags = KeywordFlag.Spell }, - ["^projectile attack skills [hd][ae][va][el] "] = { tagList = { { type = "SkillType", skillType = SkillType.Attack }, { type = "SkillType", skillType = SkillType.Projectile } } }, - ["^projectiles from attacks [hd][ae][va][el] "] = { tagList = { { type = "SkillType", skillType = SkillType.Attack }, { type = "SkillType", skillType = SkillType.Projectile } } }, + ["^projectile attack skills [hd][ae][va][el] "] = { tag = { type = "SkillType", skillType = SkillType.ProjectileAttack } }, + ["^projectiles from attacks [hd][ae][va][el] "] = { tag = { type = "SkillType", skillType = SkillType.ProjectileAttack } }, ["^arrows [hd][ae][va][el] "] = { keywordFlags = KeywordFlag.Bow }, ["^bow skills [hdf][aei][var][el] "] = { keywordFlags = KeywordFlag.Bow }, ["^projectiles [hdf][aei][var][el] "] = { flags = ModFlag.Projectile },