cleaned up magicstate and weaponskillstate

- todo: fix IsFacing
- added thunder spell (todo: figure out why battleactionx10 crashes client on sending shit)
This commit is contained in:
Tahir Akhlaq
2017-08-26 04:08:26 +01:00
parent 452f1cc8c0
commit 9024f3fad6
20 changed files with 415 additions and 195 deletions

View File

@@ -91,10 +91,38 @@ namespace FFXIVClassic_Map_Server.Actors
public override bool CanAttack()
{
// todo:
return true;
}
public override bool CanCast(Character target, Ability spell, ref SubPacket errorPacket)
{
// todo:
return false;
}
public override bool CanWeaponSkill(Character target, Ability skill, ref SubPacket errorPacket)
{
// todo:
return false;
}
public override bool CanUseAbility(Character target, Ability ability, ref SubPacket errorPacket)
{
// todo:
return false;
}
public uint GetDespawnTime()
{
return despawnTime;
}
public void SetDespawnTime(uint seconds)
{
despawnTime = seconds;
}
///<summary> // todo: create an action object? </summary>
public bool OnAttack(AttackState state)
{
@@ -167,16 +195,6 @@ namespace FFXIVClassic_Map_Server.Actors
}
}
public uint GetDespawnTime()
{
return despawnTime;
}
public void SetDespawnTime(uint seconds)
{
despawnTime = seconds;
}
public bool IsCloseToSpawn()
{
return this.isAtSpawn = Utils.DistanceSquared(positionX, positionY, positionZ, spawnX, spawnY, spawnZ) <= 2500.0f;