Cleaned up hotbar database stuff (slot starts at 0 now!) and fixed a few bugs in the state system.

This commit is contained in:
Filip Maj
2017-08-28 23:21:21 -04:00
parent 7ad40f625a
commit d81832f256
4 changed files with 32 additions and 36 deletions

View File

@@ -110,7 +110,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
owner.OnAttack(this, action, ref errorResult);
// handle paralyze/intimidate/sleep/whatever in character thing
owner.DoBattleAction((ushort)BattleActionX01PacketCommand.Attack, 0x19001000, errorResult != null ? action : errorResult);
owner.DoBattleAction((ushort)BattleActionX01PacketCommand.Attack, 0x19001000, errorResult == null ? action : errorResult);
//this.errorPacket = BattleActionX01Packet.BuildPacket(target.actorId, owner.actorId, target.actorId, 0, effectId, 0, (ushort)BattleActionX01PacketCommand.Attack, (ushort)damage, 0);
}