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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user