suriyun-production / mmorpg-kit-docs

This is document for MMORPG KIT project (https://www.assetstore.unity3d.com/#!/content/110188?aid=1100lGeN)
https://suriyun-production.github.io/mmorpg-kit-docs
48 stars 11 forks source link

[Bug] Can't respawn if killed by Consume Hp #2408

Closed ljars closed 8 months ago

ljars commented 8 months ago

[Tested in single player.] If you use a Skill with a Consume Hp amount equal to your current Hp, it kills you (as expected). But you don't get the Respawn option in the System menu.

The problem seems to be fixed by adding:

if (Entity.IsDead())
{
    Entity.CallRpcOnDead();
}

after the calls to AddOrUpdateSkillUsage() in DefaultCharacterUseSkillComponent.UseSkillRoutine()

insthync commented 8 months ago

Fixed, but I did it like this Screenshot_15