private void recalcLevel() {
        hasGainedLevels = levelOfTower.recalculateLevel();
        if (hasGainedLevels != 0) {
            for ( GameAction action : getGameActions()) {
                if (action.getAttackData() != null) { // getAttackData() returns null if the gameAction does not have an attack.
                    action.getAttackData().recalculateLevelMultiplier(hasGainedLevels);
                }
            }
        }
    }