mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
More bug fixes
Fixed loading status effects on login Fixed barrage issues Added untraited version of Protect Added sanguine rite
This commit is contained in:
18
data/scripts/effects/protect.lua
Normal file
18
data/scripts/effects/protect.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
require("modifiers")
|
||||
|
||||
function onGain(target, effect)
|
||||
--Magnitude is caster's Enhancing Magic Potency.
|
||||
--http://forum.square-enix.com/ffxiv/threads/41900-White-Mage-A-Guide
|
||||
--5-4-5-4-5-4-5-4-5 repeating points of Enhancing for 1 defense
|
||||
--4.56 * Enhancing Potency
|
||||
local defenseBuff = 4.56 * effect.GetMagnitude();
|
||||
|
||||
target.AddMod(modifiersGlobal.Defense, defenseBuff);
|
||||
end;
|
||||
|
||||
function onLose(target, effect)
|
||||
local defenseBuff = 4.56 * effect.GetMagnitude();
|
||||
|
||||
target.SubtractMod(modifiersGlobal.Defense, defenseBuff);
|
||||
end;
|
||||
|
Reference in New Issue
Block a user