mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Combat additions
Added formulas for base EXP gain and chain experience Added basic scripts for most player abilities and effects Added stat gains for some abilities Changed status flags Fixed bug with player death Fixed bug where auto attacks didnt work when not locked on Added traits
This commit is contained in:
26
data/scripts/effects/outmaneuver2.lua
Normal file
26
data/scripts/effects/outmaneuver2.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
require("modifiers")
|
||||
require("hiteffect")
|
||||
require("battleutils")
|
||||
|
||||
--Add 30 raw block rate. No idea how much block it actually gives.
|
||||
function onGain(owner, effect)
|
||||
owner.AddMod(modifiersGlobal.RawBlockRate, 30);
|
||||
end
|
||||
|
||||
function onLose(owner, effect)
|
||||
owner.SubtractMod(modifiersGlobal.RawBlockRate, 30);
|
||||
end
|
||||
|
||||
--Gives 200 TP on block. Traited: Gives 10% of the amount blocked back as MP
|
||||
function onBlock(effect, attacker, defender, action, actionContainer)
|
||||
--200 TP on block
|
||||
defender.AddTP(200);
|
||||
|
||||
--If traited, add 10% of damage taken as MP
|
||||
if(effect.GetTier() == 2) then
|
||||
local mpToReturn = math.ceil(0.10 * action.amount);
|
||||
defender.AddMP(math.ceil(mpToReturn));
|
||||
--33009: You recover x MP from Outmaneuver
|
||||
actionContainer.AddMPAction(defender.actorId, 33009, mpToReturn);
|
||||
end
|
||||
end;
|
Reference in New Issue
Block a user