mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02: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:
parent
18ef69f3d1
commit
91549bff7a
1823 changed files with 102704 additions and 901 deletions
18
Data/scripts/effects/protect.lua
Normal file
18
Data/scripts/effects/protect.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
require("modifiers")
|
||||
|
||||
function onGain(owner, effect, actionContainer)
|
||||
--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();
|
||||
|
||||
owner.AddMod(modifiersGlobal.Defense, defenseBuff);
|
||||
end;
|
||||
|
||||
function onLose(owner, effect, actionContainer)
|
||||
local defenseBuff = 4.56 * effect.GetMagnitude();
|
||||
|
||||
owner.SubtractMod(modifiersGlobal.Defense, defenseBuff);
|
||||
end;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue