Merge pull request #483 from Abextm/fix-statrestore
Fix SuperRestore and friends
This commit is contained in:
@@ -63,10 +63,9 @@ public class SuperRestore implements Effect
|
|||||||
.map(stat ->
|
.map(stat ->
|
||||||
{
|
{
|
||||||
calc.setStat(stat);
|
calc.setStat(stat);
|
||||||
return calc.calculate(client);
|
return calc.effect(client);
|
||||||
})
|
})
|
||||||
)
|
).toArray(StatChange[]::new));
|
||||||
.toArray(StatChange[]::new));
|
|
||||||
changes.setPositivity(Stream.of(changes.getStatChanges()).map(sc -> sc.getPositivity()).max(Comparator.comparing(Enum::ordinal)).get());
|
changes.setPositivity(Stream.of(changes.getStatChanges()).map(sc -> sc.getPositivity()).max(Comparator.comparing(Enum::ordinal)).get());
|
||||||
return changes;
|
return changes;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user