1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00

fix(Weapon): 修复攻击函数未返回结果的问题

This commit is contained in:
2025-09-06 09:34:58 +08:00
parent c2d5f6565c
commit 34ca879f93
+1 -1
View File
@@ -113,7 +113,7 @@ func playSound(sound: String):
func tryAttack(entity: EntityBase):
if cooldownTimer.start():
if entity.useEnergy(needEnergy):
attack(entity)
return attack(entity)
# 抽象
func update(_to: int, _origin: Dictionary, _entity: EntityBase):