using ODMO.Commons.Writers; namespace ODMO.Commons.Packets.GameServer.Combat { public class BlockHitPacket : PacketWriter { private const int PacketNumber = 1013; /// /// Blocks the default attack hit. /// /// The source of the hit /// The target of the hit /// The final damage of the hit /// The target hp before the hit /// The target hp after the hit public BlockHitPacket(int attackerHandler, int targetHandler, int finalDamage, int hpBeforeHit, int hpAfterHit) { Type(PacketNumber); WriteInt(attackerHandler); WriteInt(targetHandler); WriteInt(finalDamage * -1); WriteInt(2); WriteInt(hpAfterHit); WriteInt(hpBeforeHit); WriteShort(0); } } }