mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-02-14 04:03:36 +00:00
10 / 100 * 255 = 0
When a player dont have full life, he is on ground with 0 HP ;)
This commit is contained in:
parent
599d767598
commit
d34817c5a8
2 changed files with 3 additions and 2 deletions
|
|
@ -1041,6 +1041,7 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
|||
log.info("Load the now-registered player")
|
||||
//load the now-registered player
|
||||
tplayer.Spawn
|
||||
tplayer.Health = 50
|
||||
val dcdata = tplayer.Definition.Packet.DetailedConstructorData(tplayer).get
|
||||
sendResponse(PacketCoding.CreateGamePacket(0, ObjectCreateDetailedMessage(ObjectClass.avatar, tplayer.GUID, dcdata)))
|
||||
avatarService ! AvatarServiceMessage(tplayer.Continent, AvatarAction.LoadPlayer(tplayer.GUID, tplayer.Definition.Packet.ConstructorData(tplayer).get))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue