mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-30 16:01:53 +08:00
feat(SevenSoul): 增强七魂武器功能并修复子弹伤害逻辑
为七魂武器添加攻击力属性并调整伤害和治疗机制 修复子弹工具中空引用检查缺失的问题 移除子弹基类中冗余的空检查逻辑 更新武器描述以反映新功能 调整子弹粒子效果和伤害计算方式
This commit is contained in:
@@ -6,6 +6,7 @@ static func fromArea(area: Area2D) -> BulletBase:
|
||||
else:
|
||||
return null
|
||||
static func canDamage(bullet: BulletBase, target: EntityBase) -> bool:
|
||||
if !bullet or !target: return false
|
||||
if target.currentInvinsible: return false
|
||||
if !bullet.canDamageSelf && target == bullet.launcher: return false
|
||||
if !GameRule.allowFriendlyFire:
|
||||
|
||||
Reference in New Issue
Block a user