redirect shungite to player target; resolves #16
parent
5ef3229e93
commit
b1a1b4dfc4
|
@ -69,8 +69,7 @@ public partial class ShungiteSpike : Projectile
|
|||
// spawn a dart towards where the player is aiming
|
||||
if (inflictor is Characters.Player player)
|
||||
{
|
||||
var mousePos = GetGlobalMousePosition();
|
||||
var dart = CreateDart(GlobalPosition.DirectionTo(mousePos));
|
||||
var dart = CreateDart(player.Target.Normalized());
|
||||
dart.Hitbox.Faction = player.Faction;
|
||||
Hitbox.IsDisabled = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue