private void handleAttackSomeone(PlayerCharacter pc, IncommingMessage msg) { if (pc.LoginState == PlayerCharacterLoginState.LoginSuccesfull) { AttackSomeoneClientMessage msgAttackSomeone = (AttackSomeoneClientMessage)msg; Entity en = getEntityByEntityID((ushort)msgAttackSomeone.TargetObjectID); if (en == null) return; pc.CombatInitiateAttack(en as EntityImplementation); } }