mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Bug fixes.
Added stoneskin effect to database. Fixed Rampage not working Fixed bug where abilities didn't equip correctly when leveling up Added a temporary fix for returning while dead Added handling for abilities that don't have an actiontype set, like elusive jump
This commit is contained in:
@@ -4,18 +4,9 @@ require("modifiers")
|
||||
require("hiteffect")
|
||||
require("battleutils")
|
||||
|
||||
|
||||
--todo: calculate actual mitigation value based on Source's enhancing magic. info: http://forum.square-enix.com/ffxiv/threads/40800-Enhancing-Magic
|
||||
--This should also probably be calculated when the spell is cast so it doesnt overwrite a stronger stoneskin
|
||||
function onGain(owner, effect)
|
||||
--Going to assume its 1.34 * Enhancing Potency untraited, 1.96 * Enhancing Potency traited.
|
||||
local potencyModifier = 1.34;
|
||||
if effect.tier == 2 then
|
||||
potencyModifier = 1.96;
|
||||
end
|
||||
local amount = potencyModifier * effect.source.GetMod(modifiersGlobal.MagicEnhancePotency);
|
||||
|
||||
owner.AddMod(modifiersGlobal.Stoneskin, amount);
|
||||
owner.AddMod(modifiersGlobal.Stoneskin, effect.GetMagnitude());
|
||||
end
|
||||
|
||||
--Using extra for how much mitigation stoneskin has
|
||||
|
Reference in New Issue
Block a user