You'll need to put this retaliation.lua in scripts/globals/abilities (didn't know how to include it with the .patch)
You can set the power to whatever you want but the wiki said seems "40-50%" so I just sort of... went with something like that
Code: Select all
-----------------------------------
-- Ability: Retaliation
-- Author: Davenge
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- OnUseAbility
-----------------------------------
function OnAbilityCheck(player,target,ability)
return 0,0;
end;
function OnUseAbility(player, target, ability)
local power = math.random(40,50);
player:delStatusEffect(EFFECT_RETALIATION); --if not found this will do nothing
player:addStatusEffect(EFFECT_RETALIATION,power,0,180);
end;