1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-21 20:27:47 +00:00

Check for PreventMovement flag in BattleNpcController

Fix typos in some effect scripts
This commit is contained in:
Yogurt 2019-06-01 03:39:46 -07:00
parent 905cbf7d3c
commit a92ece58c1
4 changed files with 4 additions and 4 deletions

View file

@ -223,7 +223,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.controllers
protected virtual void Move() protected virtual void Move()
{ {
if (!owner.aiContainer.CanFollowPath()) if (!owner.aiContainer.CanFollowPath() || owner.statusEffects.HasStatusEffectsByFlag(StatusEffectFlags.PreventMovement))
{ {
return; return;
} }

View file

@ -8,6 +8,6 @@ end;
function onCommandFinish(effect, owner, skill, actionContainer) function onCommandFinish(effect, owner, skill, actionContainer)
--27259: Light Shot --27259: Light Shot
if skill.id == 27259 then if skill.id == 27259 then
defender.statusEffects.RemoveStatusEffect(effect, actionContainer, 30331, false); owner.statusEffects.RemoveStatusEffect(effect, actionContainer, 30331, false);
end end
end; end;

View file

@ -11,7 +11,7 @@ function onPreAction(effect, caster, target, skill, action, actionContainer)
action.hitRate = 0.0; action.hitRate = 0.0;
action.resistRate = 750; action.resistRate = 750;
--Remove status and add message --Remove status and add message
defender.statusEffects.RemoveStatusEffect(effect, actionContainer, 30331, false); caster.statusEffects.RemoveStatusEffect(effect, actionContainer, 30331, false);
end end
end; end;

View file

@ -10,7 +10,7 @@ function onPreAction(effect, caster, target, skill, action, actionContainer)
action.hitRate = 0.0; action.hitRate = 0.0;
action.resistRate = 400; action.resistRate = 400;
--Remove status and add message --Remove status and add message
defender.statusEffects.RemoveStatusEffect(effect, actionContainer, 30331, false); caster.statusEffects.RemoveStatusEffect(effect, actionContainer, 30331, false);
end end
end; end;