예제 #1
0
 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);
     }
 }
예제 #2
0
        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);
                }
            }
        }