mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Add new hit effect flag for hit effects that only show animations
Fix SetMP setting MaxMP instead of MP Fix substate updates not being sent
This commit is contained in:
parent
e00bb48386
commit
97dcd765eb
5 changed files with 32 additions and 2 deletions
5
data/scripts/commands/EsunaMagic.lua
Normal file
5
data/scripts/commands/EsunaMagic.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
function onEventStarted(player, command, triggerName, arg1, arg2, arg3, arg4, targetActor, arg5, arg6, arg7, arg8)
|
||||
player.Cast(command.actorId, targetActor);
|
||||
|
||||
player:endEvent();
|
||||
end
|
22
data/scripts/commands/magic/esuna.lua
Normal file
22
data/scripts/commands/magic/esuna.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
require("battleutils");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
if not target.statusEffects.HasStatusEffectsByFlag(StatusEffectFlags.LoseOnDeath) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onSkillFinish(caster, target, skill, action, actionContainer)
|
||||
|
||||
removeEffect = target.statusEffects.GetRandomEffectByFlag(StatusEffectFlags.LoseOnDeath)
|
||||
|
||||
target.statusEffects.RemoveStatusEffect(removeEffect, actionContainer, 30331);
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue