Commit 622f54933fa5f7479bc9cc4426f14ca7824cbbea
1 parent
9036e108
add missing brackets to fix the weight of ai's area attack
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -1568,7 +1568,7 @@ function _M:aiTalentTactics(t, aitarget, target_list, tactic, tg, wt_mod) |
1568 | 1568 | else |
1569 | 1569 | val_type, val_wt = next(val, val_type) if not val_wt then break end |
1570 | 1570 | end |
1571 | - if act == self and self:attr("encased_in_ice") and tact == "attack" or tact == "attackarea" then | |
1571 | + if act == self and self:attr("encased_in_ice") and (tact == "attack" or tact == "attackarea") then | |
1572 | 1572 | weight = s_mult * math.abs(benefit) -- Frozen status ignores selffire and allows self-fire |
1573 | 1573 | elseif act == self then -- hit self |
1574 | 1574 | weight = selffire*friendlyfire*s_mult*benefit -- matches actor:project | ... | ... |
-
Please register or login to post a comment