Module:AbilityTable: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
Drop debuff_props_ordered; iterate debuff_prop_to_effect directly with pairs() (with help from vergir-bot LLM)
Vergir (talk | contribs)
mNo edit summary
Line 379: Line 379:
             if type(tier) == "table" then collect_durations(tier) end
             if type(tier) == "table" then collect_durations(tier) end
         end
         end
    end
    -- AbilityDuration is only meaningful when DebuffAccuracy is the sole CC prop (Call Bell).
    local sole_cc_is_accuracy = (effects_set["Inaccuracy"] and not effects_set["Slow"]
        and not effects_set["Stun"] and not effects_set["Sleep"]
        and not effects_set["Silence"] and not effects_set["Petrify"]
        and not effects_set["Hex"] and not effects_set["Root"]
        and not effects_set["Lift"] and not effects_set["Stop"]
        and not effects_set["Time Slow"])
    if not sole_cc_is_accuracy then
        dur_found["AbilityDuration"] = nil
     end
     end