Fix team upgrades not applying
This commit is contained in:
parent
cad557d1a2
commit
5152c07fa3
@ -286,7 +286,12 @@ public class CakeShopModule extends CakeModule
|
|||||||
|
|
||||||
cakeTeam.getUpgrades().forEach((item, level) ->
|
cakeTeam.getUpgrades().forEach((item, level) ->
|
||||||
{
|
{
|
||||||
if (level > 0 && (!_game.getCakeTeamModule().hasCakeRot() && item == CakeTeamItem.REGENERATION))
|
if (_game.getCakeTeamModule().hasCakeRot() && item == CakeTeamItem.REGENERATION))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (level > 0)
|
||||||
{
|
{
|
||||||
alive.forEach(player -> item.apply(player, level, cakeTeam.getCake()));
|
alive.forEach(player -> item.apply(player, level, cakeTeam.getCake()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user