From cbd04b98b8c975e264bb8ce4a025444793e91bac Mon Sep 17 00:00:00 2001 From: raymoo Date: Wed, 13 Jan 2016 18:32:01 -0800 Subject: [PATCH] Fix bad naming and wrong indexing --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 7dda5e8..899931c 100644 --- a/init.lua +++ b/init.lua @@ -397,9 +397,9 @@ monoidal_effects.apply_effect = function(effect_type, dur, player_name, values) local players = {player_name} - local tags = type_def[tags] + local tags = type_def.tags - local monoids = type_def[monoids] + local t_monoids = type_def.monoids local record = effectset.record(dyn, effect_type, players, tags, monoids, dur, values) @@ -423,7 +423,7 @@ monoidal_effects.apply_effect = function(effect_type, dur, player_name, values) if (player ~= nil) then - for monoid in pairs(monoids) do + for monoid in pairs(t_monoids) do local existing = get_monoid_value(monoid, player_name) local new_val