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
|
// spawn a dart towards where the player is aiming
|
||||||
if (inflictor is Characters.Player player)
|
if (inflictor is Characters.Player player)
|
||||||
{
|
{
|
||||||
var mousePos = GetGlobalMousePosition();
|
var dart = CreateDart(player.Target.Normalized());
|
||||||
var dart = CreateDart(GlobalPosition.DirectionTo(mousePos));
|
|
||||||
dart.Hitbox.Faction = player.Faction;
|
dart.Hitbox.Faction = player.Faction;
|
||||||
Hitbox.IsDisabled = true;
|
Hitbox.IsDisabled = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue