Hide the combo counter content rather than full death

This commit is contained in:
Salman Ahmed
2021-05-18 09:08:56 +03:00
parent f667ea3fd0
commit ff419af512
3 changed files with 36 additions and 21 deletions

View File

@ -4,6 +4,7 @@
using System.Linq;
using NUnit.Framework;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Framework.Graphics.Containers;
using osu.Framework.Screens;
using osu.Framework.Testing;
using osu.Game.Screens.Play.HUD;
@ -32,7 +33,7 @@ namespace osu.Game.Rulesets.Catch.Tests
AddAssert("legacy HUD combo counter hidden", () =>
{
return Player.ChildrenOfType<LegacyComboCounter>().All(counter => !counter.IsPresent || !counter.IsAlive);
return Player.ChildrenOfType<LegacyComboCounter>().All(c => !c.ChildrenOfType<Container>().Single().IsPresent);
});
}
}