void ChangeTurn() { if (firstTeamIsActive) { firstTeamIsActive = false; activePlayer = teamB[playerPositionInTeam]; } else { firstTeamIsActive = true; playerPositionInTeam++; if (playerPositionInTeam > charactersPerTeam - 1) { playerPositionInTeam = 0; tManager.turnNumber += 1; tManager.UpdateTurnNumber(); } activePlayer = teamA[playerPositionInTeam]; } spellcalculators.HandleCooldownDecrease(activePlayer.thisCharacter.spell_1); spellcalculators.HandleCooldownDecrease(activePlayer.thisCharacter.spell_2); spellcalculators.HandleCooldownDecrease(activePlayer.thisCharacter.spell_3); spellcalculators.HandleCooldownDecrease(activePlayer.thisCharacter.spell_4); spellcalculators.HandleCooldownDecrease(activePlayer.thisCharacter.spell_5); spellcalculators.HandleCooldownDecrease(activePlayer.thisCharacter.spell_6); sEffects.UpdateEffects(); sEffects.CalculateEffects(activePlayer.thisCharacter); }
void ChangeTurn() { if (firstTeamIsActive) { firstTeamIsActive = false; activePlayer = teamB[playerPositionInTeam]; } else { firstTeamIsActive = true; playerPositionInTeam++; if (playerPositionInTeam > charactersPerTeam - 1) { playerPositionInTeam = 0; tManager.turnNumber += 1; tManager.UpdateTurnNumber(); } activePlayer = teamA[playerPositionInTeam]; } sEffects.UpdateEffects(); sEffects.CalculateEffects(activePlayer.thisCharacter); }