1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/Parrier.gd
T

11 lines
294 B
GDScript
Raw Normal View History

extends BulletBase
class_name ParrierBullet
func hitBullet(bullet: BulletBase):
if BulletTool.canDamage(bullet, launcher):
EffectController.create(ComponentManager.getEffect("Parry"), position).shot()
bullet.tryDestroy()
tryDestroy()
func ai():
PresetBulletAI.forward(self , rotation)