Clean up polymorphsystem (#14297)
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Content.Server.Disease.Effects
|
||||
|
||||
public override void Effect(DiseaseEffectArgs args)
|
||||
{
|
||||
EntityUid? polyUid = EntitySystem.Get<PolymorphableSystem>().PolymorphEntity(args.DiseasedEntity, PolymorphId);
|
||||
EntityUid? polyUid = EntitySystem.Get<PolymorphSystem>().PolymorphEntity(args.DiseasedEntity, PolymorphId);
|
||||
|
||||
if (PolymorphSound != null && polyUid != null)
|
||||
SoundSystem.Play(PolymorphSound.GetSound(), Filter.Pvs(polyUid.Value), polyUid.Value, AudioHelpers.WithVariation(0.2f));
|
||||
|
||||
Reference in New Issue
Block a user