10 / 100 * 255 = 0

When a player dont have full life, he is on ground with 0 HP ;)
This commit is contained in:
SouNourS 2018-02-22 16:02:16 +01:00
parent 599d767598
commit d34817c5a8
2 changed files with 3 additions and 2 deletions

View file

@ -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))