Do nothing when action is nothing
This commit is contained in:
parent
671fdc5314
commit
45eea0c7c5
@ -14,6 +14,8 @@ public abstract class Shocker
|
||||
int intensity = _intensity.GetValue();
|
||||
int duration = _duration.GetValue();
|
||||
Console.WriteLine($"{action} {intensity} {duration}");
|
||||
if (action is ControlAction.Nothing)
|
||||
return;
|
||||
if(shockerId is null)
|
||||
foreach (string shocker in _shockerIds)
|
||||
ControlInternal(action, shocker, intensity, duration);
|
||||
|
Loading…
Reference in New Issue
Block a user