Fix team upgrades not applying

This commit is contained in:
Sam 2018-01-20 00:12:14 +00:00 committed by Alexander Meech
parent cad557d1a2
commit 5152c07fa3

View File

@ -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()));
} }