mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-24 21:57:45 +00:00
14 lines
410 B
Lua
14 lines
410 B
Lua
![]() |
require("modifiers")
|
||
|
require("battleutils")
|
||
|
|
||
|
function onPreAction(caster, target, effect, skill, action, actionContainer)
|
||
|
if skill.commandType == CommandType.Spell then
|
||
|
if action.actionType == ActionType.Heal then
|
||
|
action.amount = action.amount * 0.80;
|
||
|
elseif action.actionType == ActionType.Magic then
|
||
|
action.amount = action.amount * 1.20;
|
||
|
end
|
||
|
end
|
||
|
end;
|
||
|
|