Fixed summon cubic effect current cubic count.

This commit is contained in:
MobiusDevelopment
2019-06-28 04:07:26 +00:00
parent 7196d4e089
commit 97a686a23e
12 changed files with 12 additions and 12 deletions

View File

@@ -91,7 +91,7 @@ public final class SummonCubic extends AbstractEffect
// If maximum amount is reached, random cubic is removed.
// Players with no mastery can have only one cubic.
final int allowedCubicCount = (int) effected.getActingPlayer().getStat().getValue(Stats.MAX_CUBIC, 1);
final int currentCubicCount = player.getCubics().size();
final int currentCubicCount = player.getCubics().size() + 1;
// Extra cubics are removed, one by one, randomly.
for (int i = 0; i <= (currentCubicCount - allowedCubicCount); i++)
{