Revs (the spooky ones) (#9842)
This commit is contained in:
@@ -64,10 +64,9 @@ namespace Content.Server.Ghost
|
||||
var booCounter = 0;
|
||||
foreach (var ent in ents)
|
||||
{
|
||||
var ghostBoo = new GhostBooEvent();
|
||||
RaiseLocalEvent(ent, ghostBoo, true);
|
||||
var handled = DoGhostBooEvent(ent);
|
||||
|
||||
if (ghostBoo.Handled)
|
||||
if (handled)
|
||||
booCounter++;
|
||||
|
||||
if (booCounter >= component.BooMaxTargets)
|
||||
@@ -272,5 +271,13 @@ namespace Content.Server.Ghost
|
||||
{
|
||||
args.Cancel();
|
||||
}
|
||||
|
||||
public bool DoGhostBooEvent(EntityUid target)
|
||||
{
|
||||
var ghostBoo = new GhostBooEvent();
|
||||
RaiseLocalEvent(target, ghostBoo, true);
|
||||
|
||||
return ghostBoo.Handled;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user