Commit 6ff9d4ca5493d5390608e0328457cd503912cfa8
Merge branch 'fix-call-ooze-preuse' into 'master'
Fix Call of the Ooze on_pre_use Update Call of the Ooze on_pre_use to check your number of total summons vs the limit allowed by Mitosis (Call of the Ooze's own limit is still checked in the action), so it can be used if you already have one or more oozes but do not have max summons or the max oozes allowed by mitosis. See merge request !766
Showing
1 changed file
with
4 additions
and
2 deletions
@@ -183,8 +183,10 @@ newTalent{ | @@ -183,8 +183,10 @@ newTalent{ | ||
183 | getLife = function(self, t) return self:callTalent(self.T_MITOSIS, "getMaxHP")*t.getModHP(self, t) end, | 183 | getLife = function(self, t) return self:callTalent(self.T_MITOSIS, "getMaxHP")*t.getModHP(self, t) end, |
184 | getWepDamage = function(self, t) return self:combatTalentWeaponDamage(t, 0.7, 1.8) end, | 184 | getWepDamage = function(self, t) return self:combatTalentWeaponDamage(t, 0.7, 1.8) end, |
185 | on_pre_use = function(self, t) | 185 | on_pre_use = function(self, t) |
186 | - local _, nb = checkMaxSummon(self, true, nil, "bloated_ooze") | ||
187 | - return nb < t.getMax(self, t) | 186 | + local check, nb = checkMaxSummon(self, true) |
187 | + local max = self:callTalent(self.T_MITOSIS, "getMax") or 0 | ||
188 | + if check or max == 0 then return false end | ||
189 | + return nb < max | ||
188 | end, | 190 | end, |
189 | action = function(self, t) | 191 | action = function(self, t) |
190 | local ot = self:getTalentFromId(self.T_MITOSIS) | 192 | local ot = self:getTalentFromId(self.T_MITOSIS) |
-
Please register or login to post a comment