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 ->
|
||||
{
|
||||
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());
|
||||
return changes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user