mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04: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:
30
Data/scripts/effects/sentinel.lua
Normal file
30
Data/scripts/effects/sentinel.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
Reference in New Issue
Block a user