Beispiel #1
0
 private Task KillMonster(IBattleEntity monster)
 {
     monster.Hp = 0;
     return(Context.Player.BroadcastAsync(monster.GenerateSuPacket(new HitRequest
     {
         Sender = Context.Player,
         Target = monster,
         HitMode = SuPacketHitMode.CriticalAttack,
         Damages = (uint)(monster.HpMax > ushort.MaxValue ? ushort.MaxValue : monster.HpMax),
         UsedSkill = Skill
     })));
 }