1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-25 06:07:46 +00:00

Small fixes

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)
This commit is contained in:
Yogurt 2019-06-03 23:45:21 -07:00
parent e1c86a4898
commit 8ba3c195f2
4 changed files with 9 additions and 11 deletions

View file

@ -528,8 +528,8 @@ namespace FFXIVClassic_Map_Server.Actors
aiContainer.Reset();
// todo: reset hp/mp/tp etc here
ChangeState(SetActorStatePacket.MAIN_STATE_PASSIVE);
charaWork.parameterSave.hp = charaWork.parameterSave.hpMax;
charaWork.parameterSave.mp = charaWork.parameterSave.mpMax;
SetHP((uint) GetMaxHP());
SetMP((uint) GetMaxMP());
RecalculateStats();
}

View file

@ -325,11 +325,11 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
// custom effects here
// status for having procs fall off
EvadeProc = 253003,
BlockProc = 253004,
ParryProc = 253005,
MissProc = 253006,
EXPChain = 253007
EvadeProc = 300000,
BlockProc = 300001,
ParryProc = 300002,
MissProc = 300003,
EXPChain = 300004
}
[Flags]

View file

@ -251,8 +251,6 @@ namespace FFXIVClassic_Map_Server.Actors
this.hateContainer.ClearHate();
zone.BroadcastPacketsAroundActor(this, GetSpawnPackets(null, 0x01));
zone.BroadcastPacketsAroundActor(this, GetInitPackets());
charaWork.parameterSave.hp = charaWork.parameterSave.hpMax;
charaWork.parameterSave.hp = (short[])charaWork.parameterSave.hpMax.Clone();
RecalculateStats();
OnSpawn();

View file

@ -1,11 +1,11 @@
require("global");
require("ability");
function onSkillPrepare(caster, target, skill)
function onAbilityPrepare(caster, target, ability)
return 0;
end;
function onSkillStart(caster, target, skill)
function onAbilityStart(caster, target, ability)
return 0;
end;