else player and npc

This commit is contained in:
VDH
2025-10-09 15:31:53 +07:00
parent 7c5652ec2e
commit 6a0125be95
18 changed files with 478 additions and 150 deletions
@@ -482,19 +482,6 @@ namespace PerfectWorld.Scripts.Managers
}
// Get a player (may be host or else player) by id
public EC_Player GetPlayer(int cid, uint dwBornStamp = 0)
{
CECHostPlayer pHost = GetHostPlayer();
if (pHost && pHost.GetCharacterID() == cid)
return pHost;
else
return GetElsePlayer(cid, dwBornStamp);
}
public CECHostPlayer GetHostPlayer()
{
return GameController.Instance.GetHostPlayer();
}
}
}
}