Fixed summon cubic effect current cubic count.
This commit is contained in:
@@ -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++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user