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
1 changed files with 2 additions and 1 deletions

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 @@ public void ApplyToDifficulty(BeatmapDifficulty difficulty)
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
{
Lives = 2;
scoreProcessor.Health.ValueChanged += valueChanged =>
{
if (scoreProcessor.Health.Value == 0)