Retaliation

Post Reply
Davenge
Posts: 32
Joined: Tue Sep 17, 2013 5:29 pm

Retaliation

Post by Davenge » Sat Oct 12, 2013 4:16 pm

Retaliation: only bug I've noticed is the mob makes a wiff noise on retaliation and you don't take an "damage splash animation" when you retaliate.

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 :P

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;
Attachments
retaliation.patch
(3.77 KiB) Downloaded 253 times

Post Reply