Fixed screwed up cast animation.

This commit is contained in:
Filip Maj 2017-08-29 22:27:32 -04:00
parent 517bdc0638
commit 4c7928da78
6 changed files with 19 additions and 12 deletions

View file

@ -30,9 +30,9 @@ namespace FFXIVClassic_Map_Server.packets.send.actor
using (BinaryWriter binWriter = new BinaryWriter(mem))
{
binWriter.Write((byte)breakage);
binWriter.Write((byte)(((leftChant & 0xF) << 8) | (rightChant & 0xF)));
binWriter.Write((byte)(((leftChant & 0xF) << 4) | (rightChant & 0xF)));
binWriter.Write((byte)(guard & 0xF));
binWriter.Write((byte)((wasteStat & 0xF) << 8));
binWriter.Write((byte)((wasteStat & 0xF) << 4));
binWriter.Write((byte)(statMode & 0xF));
binWriter.Write((byte)0);
binWriter.Write((UInt16)(idleAnimationId&0xFFFF));

View file

@ -114,7 +114,7 @@ namespace FFXIVClassic_Map_Server.packets.send.actor.battle
/// </summary>
public uint animation;
public BattleAction(uint targetId, ushort worldMasterTextId, uint effectId, ushort amount = 0, byte param = 0, byte unknown = 0)
public BattleAction(uint targetId, ushort worldMasterTextId, uint effectId, ushort amount = 0, byte param = 0, byte unknown = 1)
{
this.targetId = targetId;
this.worldMasterTextId = worldMasterTextId;