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
291 B
GDScript
Raw Normal View History

extends BulletBase
class_name ParrierBullet
func hitBullet(bullet: BulletBase):
if BulletTool.canDamage(bullet, launcher):
var eff = EffectController.create(ComponentManager.getEffect("Parry"), position)
eff.modulate = bullet.modulate
eff.shot()
bullet.tryDestroy()
tryDestroy()