From fb4c067a37483a63aa2c1da50fb9dbabb16807d8 Mon Sep 17 00:00:00 2001 From: K'van <imkvan@gmail.com> Date: Wed, 21 Jul 2021 02:10:35 +0200 Subject: [PATCH 1/2] Update special ego rules to include all cases of talent_on_X. Fixes issues such as the one which will result from imbuing the Prismatic Eye onto armor with a talent_on_spell e.g. Black Robe. --- game/modules/tome/class/Object.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/tome/class/Object.lua b/game/modules/tome/class/Object.lua index b9e1f7de39..c392bdb61e 100644 --- a/game/modules/tome/class/Object.lua +++ b/game/modules/tome/class/Object.lua @@ -42,7 +42,7 @@ _M.projectile_class = "mod.class.Projectile" _M.logCombat = Combat.logCombat -- ego fields that are appended as a list when the ego is applied (by Zone:applyEgo) -_M._special_ego_rules = {special_on_hit=true, special_on_crit=true, special_on_kill=true, charm_on_use=true, on_block=true} +_M._special_ego_rules = {special_on_hit=true, special_on_crit=true, special_on_kill=true, charm_on_use=true, on_block=true, talent_on_spell, talent_on_wild_gift, talent_on_mind, talent_on_hit} _M.requirement_flags_names = { allow_wear_massive = _t"Massive armour training", -- GitLab From 5960dd0b85ed20bf4825a5d995d2846c89cd458b Mon Sep 17 00:00:00 2001 From: K'van <imkvan@gmail.com> Date: Wed, 21 Jul 2021 20:34:42 +0200 Subject: [PATCH 2/2] Fixed the fix --- game/modules/tome/class/Object.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/tome/class/Object.lua b/game/modules/tome/class/Object.lua index c392bdb61e..1feea16eec 100644 --- a/game/modules/tome/class/Object.lua +++ b/game/modules/tome/class/Object.lua @@ -42,7 +42,7 @@ _M.projectile_class = "mod.class.Projectile" _M.logCombat = Combat.logCombat -- ego fields that are appended as a list when the ego is applied (by Zone:applyEgo) -_M._special_ego_rules = {special_on_hit=true, special_on_crit=true, special_on_kill=true, charm_on_use=true, on_block=true, talent_on_spell, talent_on_wild_gift, talent_on_mind, talent_on_hit} +_M._special_ego_rules = {special_on_hit=true, special_on_crit=true, special_on_kill=true, charm_on_use=true, on_block=true, talent_on_spell=true, talent_on_wild_gift=true, talent_on_mind=true, talent_on_hit=true} _M.requirement_flags_names = { allow_wear_massive = _t"Massive armour training", -- GitLab