Fix IDE0053

This commit is contained in:
RoosterDragon
2023-03-04 19:21:09 +00:00
committed by Pavel Penev
parent 37afd6094e
commit 939f715e3c
28 changed files with 41 additions and 91 deletions

View File

@@ -36,10 +36,7 @@ namespace OpenRA.Mods.Common.Effects
this.interval = interval;
tick = -delay;
target.World.RemoveAll(effect =>
{
return effect is FlashTarget flashTarget && flashTarget.target == target;
});
target.World.RemoveAll(effect => effect is FlashTarget flashTarget && flashTarget.target == target);
}
public FlashTarget(Actor target, Color color, float alpha = 0.5f, int count = 2, int interval = 2, int delay = 0)