Commit 2e73cb6be44498b5b015d39fbd33afa2a05758b2

Authored by DarkGod
1 parent 7a4ca35c

meh

... ... @@ -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
... ...