mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
parent
50b15b7c45
commit
ee9ba28e9e
1 changed files with 4 additions and 1 deletions
|
|
@ -270,11 +270,14 @@ public abstract class SharedMagicSystem : EntitySystem
|
|||
#region Projectile Spells
|
||||
private void OnProjectileSpell(ProjectileSpellEvent ev)
|
||||
{
|
||||
if (ev.Handled || !PassesSpellPrerequisites(ev.Action, ev.Performer) || !_net.IsServer)
|
||||
if (ev.Handled || !PassesSpellPrerequisites(ev.Action, ev.Performer))
|
||||
return;
|
||||
|
||||
ev.Handled = true;
|
||||
|
||||
if (!_net.IsServer)
|
||||
return; // client returns handled for predicted audio
|
||||
|
||||
var xform = Transform(ev.Performer);
|
||||
var fromCoords = xform.Coordinates;
|
||||
var toCoords = ev.Target;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue