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:
16
data/scripts/effects/decoy.lua
Normal file
16
data/scripts/effects/decoy.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
require("modifiers")
|
||||
require("battleutils")
|
||||
|
||||
--This is the untraited version of decoy.
|
||||
|
||||
function onPreAction(caster, target, effect, skill, action, actionContainer)
|
||||
--Evade single ranged or magic attack
|
||||
--Traited allows for physical attacks
|
||||
if skill.isRanged or action.actionType == ActionType.Magic then
|
||||
--Set action's hit rate to 0
|
||||
action.hirRate = 0.0;
|
||||
end
|
||||
|
||||
--Remove status and add message
|
||||
actionsList.AddAction(target.statusEffects.RemoveForBattleAction(effect));
|
||||
end;
|
Reference in New Issue
Block a user