Traveller/scripts/spell/TrackingSpell.cs
Cold-Mint 8bd7113153
Add a tracking spell.
加入跟踪法术。
2024-10-12 14:49:21 +08:00

13 lines
354 B
C#

using ColdMint.scripts.projectile;
using Godot;
namespace ColdMint.scripts.spell;
public partial class TrackingSpell : SpellPickAble
{
public override void ModifyProjectile(int index, Projectile projectile, ref Vector2 velocity)
{
base.ModifyProjectile(index, projectile, ref velocity);
projectile.EnableTracking = true;
}
}