----------------------------------- -- Author: Dj -- Mijin Gakure ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- function OnUseAbility(player, target, ability) playerHP=player:getHP(); mobHP=target:getHP(); if(playerHP>mobHP)then playerHP=mobHP; end dmg = math.floor(31*target:getMainLvl()); --ce=playerHP*((80)/(math.floor(31*target:getMainLvl()/50)+6)); --print("ve: ",ve,"ce: ",ce); --target:updateEnmity(player,dmg,ce); target:delHP(dmg); player:setAnimation(2); end;