project-meteor-server/data/scripts/effects/sentinel.lua
yogurt c442dc9ecd Script fixes and new effects.
Cleaned up unneeded requires in some scripts
Fixed Second Wind
Added new effect scripts
Added bard song scripts that mostly work
2018-06-25 23:36:18 -05:00

30 lines
922 B
Lua

require("modifiers")
require("battleutils")
function onGain(target, effect)
--Untraited Sentinel is 30% damage taken down, traited is 50%
local amount = 30;
if effect.GetTier() == 2 then
amount = 50;
end
target.AddMod(modifiersGlobal.DamageTakenDown, amount);
end;
function onLose(target, effect)
local amount = 30;
if effect.GetTier() == 2 then
amount = 50;
end
target.SubtractMod(modifiersGlobal.DamageTakenDown, amount);
end;
--Increases action's enmity by 100 for weaponskills
--http://forum.square-enix.com/ffxiv/threads/47393-Tachi-s-Guide-to-Paladin-%28post-1.22b%29
--Sentinel only works on weaponskills. It's possible that was a bug because the description says actions
function onHit(effect, attacker, defender, action, actionContainer)
if action.commandType == CommandType.WeaponSkill then
action.enmity = action.enmity + 100;
end
end