Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -1612,7 +1612,7 @@ function _M:aiTalentTactics(t, aitarget, target_list, tactic, tg, wt_mod) |
1612 | 1612 | local e_wt = 0 |
1613 | 1613 | for status, wt in pairs(effect_wt) do |
1614 | 1614 | _, status_chance = act:canBe(status) --Status immunity |
1615 | - e_wt = e_wt + wt*status_chance/100 | |
1615 | + e_wt = e_wt + wt*(status_chance or 0)/100 | |
1616 | 1616 | if log_detail > 3 then print("\t\t__status_chance", effect_type, status, status_chance) end |
1617 | 1617 | end |
1618 | 1618 | effect_wt = e_wt | ... | ... |
-
Please register or login to post a comment