mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
fix: 修正击退效果的方向计算错误
将击退方向从 (position - entity.position) 改为 (entity.position - position),确保实体被正确击退
This commit is contained in:
@@ -22,7 +22,7 @@ func penerateEffect(entity: EntityBase):
|
||||
var eff = EffectController.create(ComponentManager.getEffect("ParryEntity"), position)
|
||||
eff.rotation = position.angle_to_point(position)
|
||||
eff.shot()
|
||||
entity.impluse((position - entity.position).normalized() * 450)
|
||||
entity.impluse((entity.position - position).normalized() * 450)
|
||||
func generateParryBall(targetBaseDamage: float):
|
||||
var cycler = launcher.getOrCreateCycleTimer("parry", 2000, 100)
|
||||
if len(cycler.bullets) < maxBallCount: # 玩家最多只能拥有多少气
|
||||
|
||||
Reference in New Issue
Block a user