mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-24 13:47:46 +00:00
Move shoulder tackle to abilities folder
Add Convert
This commit is contained in:
parent
1a9a8c2116
commit
315452d121
2 changed files with 20 additions and 0 deletions
20
data/scripts/commands/ability/convert.lua
Normal file
20
data/scripts/commands/ability/convert.lua
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
require("global");
|
||||||
|
require("ability");
|
||||||
|
|
||||||
|
function onAbilityPrepare(caster, target, ability)
|
||||||
|
return 0;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function onAbilityStart(caster, target, ability)
|
||||||
|
return 0;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function onSkillFinish(caster, target, skill, action, actionContainer)
|
||||||
|
newMP = math.min(caster.GetHP(), caster.GetMaxMP())
|
||||||
|
newHP = math.min(caster.GetMP(), caster.GetMaxHP())
|
||||||
|
caster.SetHP(newHP)
|
||||||
|
caster.SetMP(newMP)
|
||||||
|
|
||||||
|
--Set effect id
|
||||||
|
action.DoAction(caster, target, skill, actionContainer);
|
||||||
|
end;
|
Loading…
Add table
Reference in a new issue