Commit 73cb9b01b7259162f747e670762a938cae24d11d

Authored by K'van
1 parent 294e777b

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.
... ... @@ -183,8 +183,10 @@ newTalent{
183 183 getLife = function(self, t) return self:callTalent(self.T_MITOSIS, "getMaxHP")*t.getModHP(self, t) end,
184 184 getWepDamage = function(self, t) return self:combatTalentWeaponDamage(t, 0.7, 1.8) end,
185 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 190 end,
189 191 action = function(self, t)
190 192 local ot = self:getTalentFromId(self.T_MITOSIS)
... ...