private void Mob_OnAttack(IKiller sender, IKillable target, AttackResult attackResult) { foreach (var player in GetAllPlayers(true)) { _packetsHelper.SendMobAttack(player.Client, (Mob)sender, target.Id, attackResult); } }
private void Mob_OnAttack(IKiller sender, IKillable target, AttackResult attackResult) { foreach (var player in GetAllPlayers(true)) { _packetsHelper.SendMobAttack(player.Client, (Mob)sender, target.Id, attackResult); if (attackResult.Absorb != 0 && player == target) { _packetsHelper.SendAbsorbValue(player.Client, attackResult.Absorb); } } }