Skip to content
Snippets Groups Projects
Commit 286cae89 authored by dg's avatar dg
Browse files

Unforunate end can only trigger if the player qualifies

git-svn-id: http://svn.net-core.org/repos/t-engine4@6001 51575b47-30f0-44d4-a5cc-537603b46e54
parent 039be768
No related branches found
No related tags found
No related merge requests found
......@@ -1286,7 +1286,7 @@ newEffect{
end,
on_merge = function(self, old_eff, new_eff) return old_eff end,
doUnfortunateEnd = function(self, eff, target, dam)
if math.min(eff.unlockLevel, eff.level) then
if math.min(eff.unlockLevel, eff.level) >=4 then
local def = self.tempeffect_def[self.EFF_CURSE_OF_MISFORTUNE]
if target.life - dam > 0 and rng.percent(def.getUnfortunateEndChance(eff.level)) then
local multiplier = 1 + def.getUnfortunateEndIncrease(eff.level) / 100
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment