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:
Yogurt committed 2019-06-01 02:10:40 -07:00
1 parent e00bb48386
commit 97dcd765eb
5 files changed
+32 -2

No files matched your search

+5
View 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
View 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;