mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 06:24:38 +02:00
Updated Map Server namespace. Moved all other data folders (www and sql) to data folder. Renamed boot name to Project Meteor.
This commit is contained in:
parent
18ef69f3d1
commit
91549bff7a
1823 changed files with 102704 additions and 901 deletions
15
Data/scripts/effects/life_surge_II.lua
Normal file
15
Data/scripts/effects/life_surge_II.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
require("battleutils")
|
||||
|
||||
function onHit(effect, attacker, defender, skill, action, actionContainer)
|
||||
if skill.GetCommandType() == CommandType.AutoAttack then
|
||||
local healPercent = 0.20;
|
||||
|
||||
if effect.GetTier() == 2 then
|
||||
healPercent = 0.40;
|
||||
end
|
||||
|
||||
local amount = math.floor((healPercent * action.amount) + 1);
|
||||
attacker.AddHP(amount);
|
||||
actionContainer.AddHPAbsorbAction(defender.actorId, 30332, amount);
|
||||
end
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue