1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-20 11:47:48 +00:00
project-meteor-server/Data/scripts/effects/sentinel.lua

30 lines
963 B
Lua
Raw Normal View History

require("modifiers")
require("battleutils")
function onGain(owner, effect, actionContainer)
--Untraited Sentinel is 30% damage taken down, traited is 50%
local amount = 30;
if effect.GetTier() == 2 then
amount = 50;
end
owner.AddMod(modifiersGlobal.DamageTakenDown, amount);
end;
function onLose(owner, effect, actionContainer)
local amount = 30;
if effect.GetTier() == 2 then
amount = 50;
end
owner.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, skill, action, actionContainer)
if skill.GetCommandType() == CommandType.WeaponSkill then
action.enmity = action.enmity + 100;
end
end