1
1
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:
2026-05-05 07:14:41 +08:00
parent 14deb2de71
commit 75fbef8895
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -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)))