mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
opening quest stuff
This commit is contained in:
@@ -233,7 +233,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
|
||||
if (mpCost != 0)
|
||||
return (ushort)Math.Ceiling((cost * mpCost * 0.001));
|
||||
|
||||
return tpCost;
|
||||
return mpCost != 0 ? (ushort)Math.Ceiling((cost * mpCost * 0.001)) : (ushort)0;
|
||||
}
|
||||
|
||||
public List<Character> GetTargets()
|
||||
|
@@ -194,7 +194,6 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.controllers
|
||||
protected virtual void DoCombatTick(DateTime tick, List<Character> contentGroupCharas = null)
|
||||
{
|
||||
HandleHate();
|
||||
|
||||
// todo: magic/attack/ws cooldowns etc
|
||||
if (TryDeaggro())
|
||||
{
|
||||
|
@@ -44,7 +44,13 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
|
||||
{
|
||||
var pos = new Vector3(owner.positionX, owner.positionY, owner.positionZ);
|
||||
var dest = new Vector3(x, y, z);
|
||||
var zone = (Zone)owner.GetZone();
|
||||
|
||||
Zone zone;
|
||||
if (owner.GetZone() is PrivateArea || owner.GetZone() is PrivateAreaContent)
|
||||
zone = (Zone)((PrivateArea)owner.GetZone()).GetParentZone();
|
||||
else
|
||||
zone = (Zone)owner.GetZone();
|
||||
|
||||
var sw = new System.Diagnostics.Stopwatch();
|
||||
sw.Start();
|
||||
|
||||
|
@@ -106,7 +106,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
|
||||
var errors = (BattleAction[])actions.Clone();
|
||||
|
||||
owner.OnWeaponSkill(this, actions, ref errors);
|
||||
owner.DoBattleAction(skill.id, 0, actions);
|
||||
owner.DoBattleAction(skill.id, skill.battleAnimation, actions);
|
||||
}
|
||||
|
||||
public override void TryInterrupt()
|
||||
|
Reference in New Issue
Block a user