mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Refactored Demo's battle action code and cleaned things up.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user