Fix status effect prediction (#8475)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.StatusEffect
|
||||
@@ -53,6 +53,13 @@ namespace Content.Shared.StatusEffect
|
||||
CooldownRefresh = refresh;
|
||||
RelevantComponent = relevantComponent;
|
||||
}
|
||||
|
||||
public StatusEffectState(StatusEffectState toCopy)
|
||||
{
|
||||
Cooldown = (toCopy.Cooldown.Item1, toCopy.Cooldown.Item2);
|
||||
CooldownRefresh = toCopy.CooldownRefresh;
|
||||
RelevantComponent = toCopy.RelevantComponent;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
|
||||
Reference in New Issue
Block a user