Exemple #1
0
 protected override async Task Handle(NcifPacket packet, IPlayerEntity player)
 {
     try
     {
         var entity = player.CurrentMap.GetEntity <IBattleEntity>(packet.TargetId, packet.Type);
         player.SetTarget(entity);
         await player.ActualizeUiTargetHpBar();
     }
     catch (Exception e)
     {
         Log.Error("[NCIF]", e);
     }
 }