Refactored Demo's battle action code and cleaned things up.

This commit is contained in:
Filip Maj
2017-08-28 21:45:01 -04:00
parent 71d5bbc9ff
commit 7ad40f625a
14 changed files with 217 additions and 122 deletions

View File

@@ -107,19 +107,19 @@ namespace FFXIVClassic_Map_Server.Actors
return true;
}
public override bool CanCast(Character target, BattleCommand spell, ref SubPacket errorPacket)
public override bool CanCast(Character target, BattleCommand spell)
{
// todo:
return false;
}
public override bool CanWeaponSkill(Character target, BattleCommand skill, ref SubPacket errorPacket)
public override bool CanWeaponSkill(Character target, BattleCommand skill)
{
// todo:
return false;
}
public override bool CanUseAbility(Character target, BattleCommand ability, ref SubPacket errorPacket)
public override bool CanUseAbility(Character target, BattleCommand ability)
{
// todo:
return false;
@@ -204,9 +204,9 @@ namespace FFXIVClassic_Map_Server.Actors
return this.isAtSpawn = Utils.DistanceSquared(positionX, positionY, positionZ, spawnX, spawnY, spawnZ) <= 2500.0f;
}
public override void OnAttack(State state, BattleAction action, ref SubPacket errorPacket)
public override void OnAttack(State state, BattleAction action, ref BattleAction error)
{
base.OnAttack(state, action, ref errorPacket);
base.OnAttack(state, action, ref error);
}
}
}