mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
Fix Shoulder Tackle script using Weaponskill function names Change BattleNPC to not use array.Clone on respawn. Move custom StatusEffect ids to 300000+ (will break these statuses until new sql file is pushed)
26 lines
716 B
Lua
26 lines
716 B
Lua
require("global");
|
|
require("ability");
|
|
|
|
function onAbilityPrepare(caster, target, ability)
|
|
return 0;
|
|
end;
|
|
|
|
function onAbilityStart(caster, target, ability)
|
|
return 0;
|
|
end;
|
|
|
|
function onSkillFinish(caster, target, skill, action, actionContainer)
|
|
--chance to influct stun only when target has no enmity towards you
|
|
if not (target.hateContainer.HasHateForTarget(caster)) then
|
|
skill.statusChance = 0.50;
|
|
end
|
|
|
|
--calculate ws damage
|
|
action.amount = skill.basePotency;
|
|
|
|
--DoAction handles rates, buffs, dealing damage
|
|
action.DoAction(caster, target, skill, actionContainer);
|
|
|
|
--Try to apply status effect
|
|
action.TryStatus(caster, target, skill, actionContainer, true);
|
|
end; |