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
43
Data/scripts/commands/ability/second_wind.lua
Normal file
43
Data/scripts/commands/ability/second_wind.lua
Normal file
|
@ -0,0 +1,43 @@
|
|||
require("global");
|
||||
require("modifiers");
|
||||
require("utils")
|
||||
--require("ability");
|
||||
|
||||
function onAbilityPrepare(caster, target, ability)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onAbilityStart(caster, target, ability)
|
||||
|
||||
return 0;
|
||||
end;
|
||||
|
||||
--http://forum.square-enix.com/ffxiv/threads/51208-2nd-wind-modifier
|
||||
--The primary modifier for SW is class level.
|
||||
|
||||
--There are three other factors that contribute to SW:
|
||||
-- PGL's SW trait, which increases potency by 25%.
|
||||
-- A bonus from INT (2INT=1HP)
|
||||
-- An additional random integer (580 at level 50. +/- 3%)
|
||||
function onSkillFinish(caster, target, skill, action, actionContainer)
|
||||
--Base amount seems to be 0.215x^2 - 0.35x + 60
|
||||
--^ this isn't totally correct
|
||||
local amount = (0.215 * math.pow(caster.GetLevel(), 2)) - (0.35 * caster.GetLevel()) + 60;
|
||||
|
||||
--Heals can vary by up to 3.5%
|
||||
amount = math.Clamp(amount * (0.965 + (math.random() * 0.07)), 0, 9999);
|
||||
|
||||
--PGL gets an INT bonus for Second Wind
|
||||
if caster.GetClass() == 2 then
|
||||
amount = amount + caster.GetMod(modifiersGlobal.Intelligence) / 2;
|
||||
end;
|
||||
|
||||
--27120: Enhanced Second Wind
|
||||
if caster.HasTrait(27120) then
|
||||
amount = amount * 1.25;
|
||||
end;
|
||||
|
||||
action.amount = amount;
|
||||
--DoAction handles rates, buffs, dealing damage
|
||||
action.DoAction(caster, target, skill, actionContainer);
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue