Do nothing when action is nothing

This commit is contained in:
glax 2024-01-14 01:13:09 +01:00
parent 671fdc5314
commit 45eea0c7c5

View File

@ -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);