1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 12:02:54 +08:00

Fixed lives being not reseting between maps.

E.G.  quitting a map with only 1 revive and getting 2 lives on another map.
This commit is contained in:
RORIdev 2019-04-03 20:22:48 -03:00
parent 28bf3156ba
commit ff1815e714

View File

@ -11,7 +11,7 @@ namespace osu.Game.Rulesets.Mods
{
public abstract class ModEasy : Mod, IApplicableToDifficulty, IApplicableToScoreProcessor
{
public static int Lives = 2;
public static int Lives;
public override string Name => "Easy";
public override string Acronym => "EZ";
public override IconUsage Icon => OsuIcon.ModEasy;
@ -31,6 +31,7 @@ namespace osu.Game.Rulesets.Mods
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
{
Lives = 2;
scoreProcessor.Health.ValueChanged += valueChanged =>
{
if (scoreProcessor.Health.Value == 0)