mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-12 22:57:13 +08:00
fix(EntityBase): 修复玩家角色死亡时被立即移除的问题
修改tryDie方法,仅当非玩家角色时才调用queue_free 同时更新牧羊犬角色的标语和配置
This commit is contained in:
@@ -448,7 +448,8 @@ func tryDie(by: BulletBase = null):
|
||||
UIState.showTip("[b]%s[/b] 已被打败!" % displayName, TipBox.MessageType.CONGRATULATION)
|
||||
elif isPlayer():
|
||||
UIState.showTip("[b]%s[/b] 似了😭。" % displayName, TipBox.MessageType.ERROR)
|
||||
queue_free()
|
||||
if !isPlayer():
|
||||
queue_free()
|
||||
func tryHeal(count: float):
|
||||
playSound("heal")
|
||||
healed.emit(heal(count * fields.get(FieldStore.Entity.HEAL_ABILITY)))
|
||||
|
||||
Reference in New Issue
Block a user