Index: healing.lua =================================================================== --- healing.lua (revision 1718) +++ healing.lua (working copy) @@ -21,7 +21,7 @@ function onEffectTick(target,effect) - healtime = effect:getTickCount(); + local healtime = effect:getTickCount(); if (healtime > 1) then if (not(target:hasStatusEffect(EFFECT_DISEASE))) then @@ -31,7 +31,17 @@ target:setTP(target:getTP()-10); target:addHP(10+(healtime-2)+(target:getMod(MOD_HPHEAL))); end - target:addMP(12+(healtime-2)+(target:getMod(MOD_MPHEAL))+(target:getMod(MOD_CLEAR_MIND)*(healtime-2))); + + local clrmnd = target:getMod(295); + if (clrmnd >= 5) then + target:addMP(27+(target:getMod(MOD_MPHEAL))+(3*(healtime-2))); + elseif (clrmnd == 4) or (clrmnd == 3) then + target:addMP((12+(clrmnd*3))+(target:getMod(MOD_MPHEAL))+(2*(healtime-2))); + elseif (clrmnd == 2) or (clrmnd == 1) then + target:addMP((12+(clrmnd*3))+(target:getMod(MOD_MPHEAL))+(healtime-2)); + else + target:addMP(12+(target:getMod(MOD_MPHEAL))+(healtime-2)); + end end end